gcc.git
16 years agore PR fortran/36676 (Namelist Comments Problems)
Jerry DeLisle [Wed, 2 Jul 2008 04:01:57 +0000 (04:01 +0000)]
re PR fortran/36676 (Namelist Comments Problems)

2008-07-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/36676
* gfortran.dg/namelist_51.f90: New test.

From-SVN: r137335

16 years agore PR fortran/36676 (Namelist Comments Problems)
Jerry DeLisle [Wed, 2 Jul 2008 03:58:57 +0000 (03:58 +0000)]
re PR fortran/36676 (Namelist Comments Problems)

2008-07-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/36676
* io/list_read.c (find_nml_name): Use eat_separator instead of eat_line.

From-SVN: r137334

16 years agoDaily bump.
GCC Administrator [Wed, 2 Jul 2008 00:17:10 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r137332

16 years agotarget-supports.exp (check_effective_target_vect_int, [...]): Check for ARM.
Joseph Myers [Tue, 1 Jul 2008 22:15:47 +0000 (23:15 +0100)]
target-supports.exp (check_effective_target_vect_int, [...]): Check for ARM.

* lib/target-supports.exp (check_effective_target_vect_int,
check_effective_target_vect_shift,
check_effective_target_vect_long,
check_effective_target_vect_float,
check_effective_target_vect_no_align,
check_effective_target_vect_int_mult): Check for ARM.
(check_effective_target_arm_neon): New.
(check_effective_target_vect_cmdline_needed): Use it.

From-SVN: r137328

16 years agofunction.c (assign_parm_remove_parallels): New.
Daniel Jacobowitz [Tue, 1 Jul 2008 20:49:40 +0000 (20:49 +0000)]
function.c (assign_parm_remove_parallels): New.

* function.c (assign_parm_remove_parallels): New.
(assign_parm_setup_block_p): Do not return true for non-BLKmode
PARALLELs.
(assign_parm_setup_block): Do not handle them.
(assign_parm_setup_reg, assign_parm_setup_stack): Call
assign_parm_remove_parallels.

From-SVN: r137326

16 years agoc-typeck.c (convert_for_assignment): Use vector_targets_convertible_p.
Daniel Jacobowitz [Tue, 1 Jul 2008 20:48:59 +0000 (20:48 +0000)]
c-typeck.c (convert_for_assignment): Use vector_targets_convertible_p.

* c-typeck.c (convert_for_assignment): Use
vector_targets_convertible_p.
* c-common.c (vector_targets_convertible_p): New.
* c-common.h (vector_targets_convertible_p): New prototype.
* config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
opaque_p_V2SI_type_node.

* typeck.c (comp_ptr_ttypes_real): Use vector_targets_convertible_p.
(comp_ptr_ttypes_const): Likewise.

* g++.dg/other/opaque-1.C, g++.dg/other/opaque-2.C,
g++.dg/other/opaque-3.C: Also run on powerpc*-*-linux*spe*.

From-SVN: r137325

16 years agoia64.c (ia64_cannot_force_const_mem): Do not allow RFmode constants.
Steve Ellcey [Tue, 1 Jul 2008 20:46:31 +0000 (20:46 +0000)]
ia64.c (ia64_cannot_force_const_mem): Do not allow RFmode constants.

* config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
RFmode constants.

From-SVN: r137324

16 years agoi386.c (ix86_build_signbit_mask): Generate TImode and TFmode constants via two elemen...
Uros Bizjak [Tue, 1 Jul 2008 16:13:40 +0000 (18:13 +0200)]
i386.c (ix86_build_signbit_mask): Generate TImode and TFmode constants via two element DImode vector for hosts...

* config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
TFmode constants via two element DImode vector for hosts with
HOST_BITS_PER_WIDE_INT < 64.
(ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
also for HOST_BITS_PER_WIDE_INT < 64.

testsuite/ChangeLog:

* gcc.target/i386/quad-sse.c: New test.

From-SVN: r137322

16 years agoMarked changelog entry with PR rtl-optimization/34744
Kenneth Zadeck [Tue, 1 Jul 2008 13:56:28 +0000 (13:56 +0000)]
Marked changelog entry with PR rtl-optimization/34744

From-SVN: r137318

16 years agodecl.c (finish_constructor_body): Don't set the return value of the constructor if...
Andrew Haley [Tue, 1 Jul 2008 12:56:08 +0000 (12:56 +0000)]
decl.c (finish_constructor_body): Don't set the return value of the constructor if...

2008-07-01  Andrew Haley  <aph@redhat.com>

        * decl.c (finish_constructor_body): Don't set the return value of
        the constructor if the constructor is that of a Java type.

From-SVN: r137317

16 years agore PR tree-optimization/36666 (ICE in process_constraint, at tree-ssa-structalias...
Richard Guenther [Tue, 1 Jul 2008 11:05:17 +0000 (11:05 +0000)]
re PR tree-optimization/36666 (ICE in process_constraint, at tree-ssa-structalias.c:2573)

2008-07-01  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/36666
* tree-ssa-structalias.c (get_constraint_for_1): Declare.
(get_constraint_exp_from_ssa_var): Split into ...
(get_constraint_exp_for_temp): ... this ...
(get_constraint_for_ssa_var): ... and that.
Return constraint expressions for all touched sub-fields
if the results address is not taken.
(process_constraint): Remove assertion that aggregate
assignments do not happen at this place.
(get_constraint_for_component_ref): Add address_p argument.
Return constraint expressions for all touched sub-fields
if the results address is not taken.
(do_deref): Use get_constraint_exp_for_temp.
(get_constraint_for_1): Rename from ...
(get_constraint_for): ... this.  Add the old function as
wrapper.
(do_structure_copy): Use get_constraint_for_1.

* gcc.c-torture/compile/pr36666.c: New testcase.

From-SVN: r137315

16 years agoMakefile.in (tree-switch-conversion.o): Add.
Martin Jambor [Tue, 1 Jul 2008 08:54:18 +0000 (10:54 +0200)]
Makefile.in (tree-switch-conversion.o): Add.

2008-07-01  Martin Jambor  <mjambor@suse.cz>
        * Makefile.in (tree-switch-conversion.o): Add.
        (OBJS-common): Add tree-swtch-conversion.o.
        * passes.c (init_optimization_passes): Add pass_convert_switch.
        * tree-pass.h: (pass_convert_switch): Add.
        * tree-switch-conversion.c: New file.
        * gcc.dg/tree-ssa/cswtch.c: New testcase.
        * common.opt (ftree-cswtch): New option.
        * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
        * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
        * opts.c (decode_options): Set flag_tree_switch_conversion when
        optimization level is >= 2.
        * doc/invoke.texi (Optimize Options): Added description of
        -ftree-swtch-conversion and switch-conversion-max-branch-ratio.

From-SVN: r137313

16 years ago* gnat.dg/pack10.adb: New test.
Eric Botcazou [Tue, 1 Jul 2008 08:21:31 +0000 (08:21 +0000)]
* gnat.dg/pack10.adb: New test.

From-SVN: r137311

16 years agodarwin-driver.c (darwin_default_min_version): Fix -Wc++-compat warnings.
Kaveh R. Ghazi [Tue, 1 Jul 2008 02:05:41 +0000 (02:05 +0000)]
darwin-driver.c (darwin_default_min_version): Fix -Wc++-compat warnings.

* config/darwin-driver.c (darwin_default_min_version): Fix
-Wc++-compat warnings.

From-SVN: r137304

16 years agoDaily bump.
GCC Administrator [Tue, 1 Jul 2008 00:17:21 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r137302

16 years agore PR middle-end/36598 (Failed optimisation of return of struct argment in memcpy...
Andy Hutchinson [Mon, 30 Jun 2008 22:38:34 +0000 (22:38 +0000)]
re PR middle-end/36598 (Failed optimisation of return of struct argment in memcpy-1.c)

PR target/36598
* gcc.dg/memcpy-1.c: Mark test XFAIL for avr target.

From-SVN: r137298

16 years agoi386.md (*movti_rex64): Add "!" to "r" constraint of operand 0.
Uros Bizjak [Mon, 30 Jun 2008 21:24:15 +0000 (23:24 +0200)]
i386.md (*movti_rex64): Add "!" to "r" constraint of operand 0.

* config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
of operand 0.

testsuite/ChangeLog:

* gcc.target/i386/movti.c: New test.

From-SVN: r137291

16 years agoFix up a misplaced ChangeLog entry.
Jakub Jelinek [Mon, 30 Jun 2008 20:49:23 +0000 (22:49 +0200)]
Fix up a misplaced ChangeLog entry.

From-SVN: r137288

16 years agore PR c++/36662 (vector vs template)
Jakub Jelinek [Mon, 30 Jun 2008 20:41:29 +0000 (22:41 +0200)]
re PR c++/36662 (vector vs template)

PR c++/36662
* decl2.c (is_late_template_attribute): If the first attribute
argument is IDENTIFIER_NODE, don't consider it when checking
if arguments are value or type dependent.

* g++.dg/ext/altivec-16.C: New test.

From-SVN: r137287

16 years agoifcvt.c (cond_move_process_if_block): Free vectors on false return.
Kenneth Zadeck [Mon, 30 Jun 2008 19:31:42 +0000 (19:31 +0000)]
ifcvt.c (cond_move_process_if_block): Free vectors on false return.

2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>

* ifcvt.c (cond_move_process_if_block): Free vectors on false
return.

From-SVN: r137285

16 years agodf-scan.c (df_scan_free_ref_vec, [...]): New macros.
Kenneth Zadeck [Mon, 30 Jun 2008 19:28:24 +0000 (19:28 +0000)]
df-scan.c (df_scan_free_ref_vec, [...]): New macros.

2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>

* df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New
macros.
        (df_scan_free_internal): Free data structures not
allocated in storage pools.
(df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
(df_refs_add_to_chains): Use df_scan_free_ref_vec and
df_scan_free_mws_vec.
* dse.c (dse_step6): Free offset_map_p and offset_map_n
unconditionally.

From-SVN: r137284

16 years agoi386.c (contains_aligned_value_p): Return true for __float128.
H.J. Lu [Mon, 30 Jun 2008 18:00:42 +0000 (18:00 +0000)]
i386.c (contains_aligned_value_p): Return true for __float128.

2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>

* config/i386/i386.c (contains_aligned_value_p): Return true
for __float128.
(ix86_function_arg_boundary): Return its natural boundary for
for __float128.
(return_in_memory_32): Don't check TDmode.
(ix86_split_to_parts): Support splitting into 4 parts and
support TFmode for 32bit target.
(ix86_split_long_move): Support splitting into 4 parts.
(bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
for SSE2.
(ix86_init_mmx_sse_builtins): Move __float80 and __float128
to ...
(ix86_init_builtins): Here.
(ix86_scalar_mode_supported_p): Always return true for TFmode.
(ix86_c_mode_for_suffix): Always return TFmode and XFmode for
'q' and 'w', respectively.

* config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
TARGET_64BIT.
(movtf_internal): Likewise.
(<code>tf2): Likewise.
(*absnegtf2_sse): Likewise.
(copysign<mode>3): Likewise.
(copysign<mode>3_const): Likewise.
(copysign<mode>3_var): Likewise.
(define_split UNSPEC_COPYSIGN): Likewise.
* config/i386/sse.md (*nandtf3): Likewise.
(<code>tf3): Likewise.
(*<code>tf3): Likewise.

From-SVN: r137276

16 years agoglobal.c (compute_regsets): Set frame_pointer_needed here.
Joey Ye [Mon, 30 Jun 2008 17:51:49 +0000 (17:51 +0000)]
global.c (compute_regsets): Set frame_pointer_needed here.

2008-06-30  Joey Ye  <joey.ye@intel.com>
    H.J. Lu  <hongjiu.lu@intel.com>

* global.c (compute_regsets): Set frame_pointer_needed here.

* reload1.c (init_elim_table): Don't set frame_pointer_needed
here.

Co-Authored-By: H.J. Lu <hongjiu.lu@intel.com>
From-SVN: r137275

16 years agoinstall.texi (specific): Expand Windows build notes.
Aaron W. LaFramboise [Mon, 30 Jun 2008 12:21:19 +0000 (06:21 -0600)]
install.texi (specific): Expand Windows build notes.

2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>

* doc/install.texi (specific): Expand Windows build notes.

From-SVN: r137273

16 years agore PR tree-optimization/36648 (segfault in global constructor with -O3)
Ira Rosen [Mon, 30 Jun 2008 11:43:55 +0000 (11:43 +0000)]
re PR tree-optimization/36648 (segfault in global constructor with -O3)

PR tree-optimization/36648
* tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
number of prolog iterations by step. Fix the comment.

From-SVN: r137272

16 years agore PR middle-end/36671 (gfortran.dg/associated_1.f90)
Richard Guenther [Mon, 30 Jun 2008 11:39:53 +0000 (11:39 +0000)]
re PR middle-end/36671 (gfortran.dg/associated_1.f90)

2008-06-30  Richard Guenther  <rguenther@suse.de>

PR middle-end/36671
* tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
handle calls from ECF_MALLOC functions.
(handle_pure_call): ECF_MALLOC functions do not return
call-used memory.
(find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.

From-SVN: r137271

16 years agobackward_warning.h: Fix typo.
Alfred E. Heggestad [Mon, 30 Jun 2008 10:48:48 +0000 (10:48 +0000)]
backward_warning.h: Fix typo.

2008-06-30  Alfred E. Heggestad  <aeh@db.org>

* include/backward/backward_warning.h: Fix typo.

From-SVN: r137269

16 years agoDaily bump.
GCC Administrator [Mon, 30 Jun 2008 00:17:10 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r137265

16 years agore PR c++/36655 (unjustified warning for "extern template" when using -pedantic ...
Paolo Carlini [Sun, 29 Jun 2008 21:44:57 +0000 (21:44 +0000)]
re PR c++/36655 (unjustified warning for "extern template" when using -pedantic -std=c++0x)

/cp
2008-06-29  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/36655
* pt.c (do_type_instantiation): In c++0x mode do not warn for
extern template.

/testsuite
2008-06-29  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/36655
* g++.dg/cpp0x/extern_template-2.C: New.
* g++.dg/cpp0x/extern_template.C: Rename to...
* g++.dg/cpp0x/extern_template-1.C: ... this.

From-SVN: r137261

16 years agoenv.c (parse_stacksize): Add cast to avoid warning.
Krister Walfridsson [Sun, 29 Jun 2008 21:41:03 +0000 (21:41 +0000)]
env.c (parse_stacksize): Add cast to avoid warning.

2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>

* env.c (parse_stacksize): Add cast to avoid warning.
(parse_spincount): Likewise.

From-SVN: r137260

16 years agom68k.c (print_operand): Always print a float constant in hex.
Andreas Schwab [Sun, 29 Jun 2008 21:27:46 +0000 (21:27 +0000)]
m68k.c (print_operand): Always print a float constant in hex.

* config/m68k/m68k.c (print_operand): Always print a float
constant in hex.
* config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
(ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
Remove macros.

From-SVN: r137259

16 years agoMAINTAINERS (Write After Approval): Add myself.
Andrew Jenner [Sun, 29 Jun 2008 20:17:45 +0000 (20:17 +0000)]
MAINTAINERS (Write After Approval): Add myself.

* MAINTAINERS (Write After Approval):  Add myself.

From-SVN: r137258

16 years ago* config/rs6000/x-linux64: Remove never used file.
Andreas Schwab [Sun, 29 Jun 2008 19:36:02 +0000 (19:36 +0000)]
* config/rs6000/x-linux64: Remove never used file.

From-SVN: r137257

16 years agoMAINTAINERS: Update my email address.
Krister Walfridsson [Sun, 29 Jun 2008 19:21:49 +0000 (19:21 +0000)]
MAINTAINERS: Update my email address.

2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>

* MAINTAINERS: Update my email address.

From-SVN: r137256

16 years agore PR fortran/36341 (MATMUL: Bounds check missing)
Thomas Koenig [Sun, 29 Jun 2008 19:06:06 +0000 (19:06 +0000)]
re PR fortran/36341 (MATMUL: Bounds check missing)

2008-06-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/36341
* iresolve.c (gfc_resolve_matmul): Copy shapes
from arguments.

2008-06-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/36341
* gfortran.dg/matmul_bounds_1.f90:  New test.

From-SVN: r137255

16 years agoinvoke.texi: Add documentation for runtime behavior of -fno-range-check.
Jerry DeLisle [Sun, 29 Jun 2008 18:56:08 +0000 (18:56 +0000)]
invoke.texi: Add documentation for runtime behavior of -fno-range-check.

2008-06-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

* invoke.texi: Add documentation for runtime behavior of
-fno-range-check.

From-SVN: r137254

16 years agostring_conversions.cc: Remove.
Paolo Carlini [Sun, 29 Jun 2008 15:46:50 +0000 (15:46 +0000)]
string_conversions.cc: Remove.

2008-06-29  Paolo Carlini  <paolo.carlini@oracle.com>

* src/string_conversions.cc: Remove.
* config/abi/pre/gnu.ver: Delete exports.
* src/Makefile.am: Update.
* include/ext/string_conversions.h: Add.
* include/Makefile.am: Update.
* include/bits/basic_string.h: Include string_conversions.h,
define numeric conversion functions.
* include/ext/vstring.h: Likewise.
* src/Makefile.in: Regenerate.
* include/Makefile.in: Regenerate.

From-SVN: r137253

16 years agotree-ssa-structalias.h (compute_points_to_sets): Adjust prototype.
Richard Guenther [Sun, 29 Jun 2008 15:44:00 +0000 (15:44 +0000)]
tree-ssa-structalias.h (compute_points_to_sets): Adjust prototype.

2008-06-29  Richard Guenther  <rguenther@suse.de>

* tree-ssa-structalias.h (compute_points_to_sets): Adjust
prototype.
(struct alias_info): Move ...
* tree-ssa-alias.c: ... here.
(update_alias_info): Declare.
(compute_may_aliases): Call it.
(update_alias_info): New function.
* tree-ssa-structalias.c (update_alias_info): Move ...
* tree-ssa-alias.c (update_alias_info_1): ... here.
* tree-ssa-structalias.c (process_constraint_1): Remove
unused from_call argument.  Rename to ...
(process_constraint): ... this.  Delete old wrapper.
(make_constraint_to): Adjust callers.
(handle_const_call): Likewise.
(handle_pure_call): Likewise.
(init_base_vars): Likewise.
(handle_lhs_call): Likewise.  Remove unnecessary constraint.
(find_func_aliases): We don't need structure copies for
complex types.
(make_constraint_from_anything): Remove.
(create_variable_info_for): For globals make constraints
from escaped, not from anything.
(compute_points_to_sets): Do not call update_alias_info.
(ipa_pta_execute): Use make_constraint_from.

From-SVN: r137252

16 years agostl_algo.h (copy_n): Add in C++0x mode.
Paolo Carlini [Sun, 29 Jun 2008 11:08:26 +0000 (11:08 +0000)]
stl_algo.h (copy_n): Add in C++0x mode.

2008-06-29  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/stl_algo.h (copy_n): Add in C++0x mode.
* include/bits/algorithmfwd.h: Add.
* include/bits/stl_uninitialized.h (uninitialized_copy_n): Add
in C++0x mode.
* testsuite/20_util/specialized_algorithms/uninitialized_copy_n/
move_iterators/1.cc: New
* testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.
* testsuite/25_algorithms/copy_n/1.cc: New.
* testsuite/25_algorithms/copy_n/2.cc: Likewise.
* testsuite/25_algorithms/copy_n/3.cc: Likewise.
* testsuite/25_algorithms/copy_n/4.cc: Likewise.
* testsuite/25_algorithms/copy_n/move_iterators/1.cc: Likewise.
* testsuite/25_algorithms/copy_n/requirements/
explicit_instantiation/2.cc: Likewise.
* testsuite/25_algorithms/partition_point/requirements/
explicit_instantiation/pod.cc: Likewise.

From-SVN: r137251

16 years agore PR testsuite/36620 (gcc.dg/pr36504.c doesn't work on 32bit)
Jakub Jelinek [Sun, 29 Jun 2008 10:39:05 +0000 (12:39 +0200)]
re PR testsuite/36620 (gcc.dg/pr36504.c doesn't work on 32bit)

PR testsuite/36620
* gcc.dg/pr36504.c: Add -w to dg-options.

From-SVN: r137249

16 years agopr36493.c: Require vect_long.
Ira Rosen [Sun, 29 Jun 2008 06:57:39 +0000 (06:57 +0000)]
pr36493.c: Require vect_long.

* gcc.dg/vect/pr36493.c: Require vect_long.

From-SVN: r137247

16 years agooptabs.c (libfunc_decl_hash, [...]): Fix -Wcast-qual warnings.
Kaveh R. Ghazi [Sun, 29 Jun 2008 05:36:20 +0000 (05:36 +0000)]
optabs.c (libfunc_decl_hash, [...]): Fix -Wcast-qual warnings.

* optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
warnings.

* Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
(bitmap.o-warn, dominance.o-warn): New.
* configure.ac (cxx_compat_warn): Delete.
(loose_warn): Add -Wcast-qual and -Wc++-compat.
* system.h: Remove #pragma diagnostic for -Wcast-qual and
-Wc++-compat.
* configure: Regenerate.

cp:
* Make-lang.in (cp-warn): Delete $(CXX_COMPAT_WARN).

java:
* Make-lang.in (java/jcf-io.o-warn): New.

From-SVN: r137246

16 years agoalloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
Kaveh R. Ghazi [Sun, 29 Jun 2008 04:39:16 +0000 (04:39 +0000)]
alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.

* alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
* df-scan.c (df_notes_rescan): Likewise.
* ggc-page.c (set_page_table_entry): Likewise.
* intl.c (gcc_gettext_width): Likewise.
* varasm.c (get_unnamed_section, get_noswitch_section,
get_section): Likewise.

From-SVN: r137245

16 years agoDaily bump.
GCC Administrator [Sun, 29 Jun 2008 00:17:17 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r137243

16 years agonamelist_50.f90: New test.
Jerry DeLisle [Sat, 28 Jun 2008 23:11:53 +0000 (23:11 +0000)]
namelist_50.f90: New test.

2008-06-28  Jerry DeLisle <jvdelisle@gcc.gnu.org>

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

From-SVN: r137239

16 years agostl_algo.h (partition_point): Add in C++0x mode.
Paolo Carlini [Sat, 28 Jun 2008 22:39:59 +0000 (22:39 +0000)]
stl_algo.h (partition_point): Add in C++0x mode.

2008-06-28  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/stl_algo.h (partition_point): Add in C++0x mode.
* include/bits/algorithmfwd.h: Add.
* testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.
* testsuite/25_algorithms/partition_point/1.cc: New.
* testsuite/25_algorithms/partition_point/check_type.cc: Likewise.
* testsuite/25_algorithms/partition_point/requirements/
explicit_instantiation/2.cc: Likewise.
* testsuite/25_algorithms/partition_point/requirements/
explicit_instantiation/pod.cc: Likewise.

From-SVN: r137237

16 years agore PR libfortran/36657 (Namelist reading bug with string constant immediately followe...
Jerry DeLisle [Sat, 28 Jun 2008 21:46:53 +0000 (21:46 +0000)]
re PR libfortran/36657 (Namelist reading bug with string constant immediately followed by comment)

2008-06-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/36657
* io/list_read.c (read_character): Check for '!' along with separators.
(find_nml_name): Likewise and eat the comment if found.

From-SVN: r137236

16 years agoregrename.c (build_def_use): Don't copy RTX.
Andrew Jenner [Sat, 28 Jun 2008 21:37:04 +0000 (21:37 +0000)]
regrename.c (build_def_use): Don't copy RTX.

       * regrename.c (build_def_use): Don't copy RTX.

From-SVN: r137235

16 years agoextend.texi (Variable Attributes): Use @ref instead of @xref.
Sandra Loosemore [Sat, 28 Jun 2008 21:02:06 +0000 (17:02 -0400)]
extend.texi (Variable Attributes): Use @ref instead of @xref.

2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
(Type Attributes): Fix nesting of @table and @subsection.  Adjust
punctuation.  Use @ref instead of @xref.
(Function Names): Remove stray @display/@end display.
(C++ Attributes): Use @ref instead of @xref.
(Deprecated Features): Fix punctuation around @xref.
(Backwards Compatibility): Likewise.
* doc/rtl.texi (Incdec): Remove stray @table/@end table.

From-SVN: r137234

16 years agopredicates.md (easy_fp_constant): Reject TFmode constants for E500 double.
Joseph Myers [Sat, 28 Jun 2008 19:40:03 +0000 (20:40 +0100)]
predicates.md (easy_fp_constant): Reject TFmode constants for E500 double.

* config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
constants for E500 double.

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

From-SVN: r137232

16 years agore PR libstdc++/36660 (pb_ds/detail/resize_policy/sample_resize_trigger.hpp has extra...
Paolo Carlini [Sat, 28 Jun 2008 18:32:48 +0000 (18:32 +0000)]
re PR libstdc++/36660 (pb_ds/detail/resize_policy/sample_resize_trigger.hpp has extra closing brace)

2008-06-28  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/36660
* include/ext/pb_ds/detail/resize_policy/
sample_resize_trigger.hpp: Remove spurious namespace end.

From-SVN: r137231

16 years agortl.texi (const_vector): Document const_fixed as legitimate element type of const_vector.
Ulrich Weigand [Sat, 28 Jun 2008 17:48:25 +0000 (17:48 +0000)]
rtl.texi (const_vector): Document const_fixed as legitimate element type of const_vector.

* doc/rtl.texi (const_vector): Document const_fixed as legitimate
element type of const_vector.

From-SVN: r137230

16 years agoi386.md (addti3, [...]): Remove FLAGS_REG clobber from expander pattern.
Uros Bizjak [Sat, 28 Jun 2008 17:25:48 +0000 (19:25 +0200)]
i386.md (addti3, [...]): Remove FLAGS_REG clobber from expander pattern.

* config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
Remove FLAGS_REG clobber from expander pattern.
(subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
(anddi3, andsi3, andhi3, andqi3): Ditto.
(iordi3, iorsi3, iorhi3, iorqi3): Ditto.
(xordi3, xorsi3, xorhi3, xorqi3): Ditto.
(negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
(ashlsi3, ashlhi3, ashlqi3): Ditto.
(ashrsi3, ashrhi3, ashrqi3): Ditto.
(lshrsi3, lshrhi3, lshrqi3): Ditto.
(rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
(rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.

From-SVN: r137229

16 years ago- in last ChangeLog entry, replace leading spaces with a tab
Matthias Klose [Sat, 28 Jun 2008 16:08:12 +0000 (16:08 +0000)]
- in last ChangeLog entry, replace leading spaces with a tab

From-SVN: r137228

16 years agogfc-internals.texi (section gfc_code): Extended documentation about gfc_code in the...
Daniel Kraft [Sat, 28 Jun 2008 15:11:25 +0000 (17:11 +0200)]
gfc-internals.texi (section gfc_code): Extended documentation about gfc_code in the internal datastructures chapter...

2008-06-28  Daniel Kraft  <d@domob.eu>

* gfc-internals.texi (section gfc_code):  Extended documentation about
gfc_code in the internal datastructures chapter including details about
how IF, DO and SELECT blocks look like and an example for how the
block-chaining works.

From-SVN: r137226

16 years agopta-field-1.c: Add return 0.
Richard Guenther [Sat, 28 Jun 2008 13:35:35 +0000 (13:35 +0000)]
pta-field-1.c: Add return 0.

2008-06-28  Richard Guenther  <rguenther@suse.de>

* gcc.c-torture/execute/pta-field-1.c: Add return 0.
* gcc.c-torture/execute/pta-field-2.c: Likewise.

From-SVN: r137224

16 years agoImport GNU Classpath (classpath-0_97_2-release).
Matthias Klose [Sat, 28 Jun 2008 13:29:13 +0000 (13:29 +0000)]
Import GNU Classpath (classpath-0_97_2-release).

libjava/

2008-06-28  Matthias Klose  <doko@ubuntu.com>

        Import GNU Classpath (classpath-0_97_2-release).

        * Regenerate class and header files.
        * Regenerate auto* files.
        * gcj/javaprims.h: Define jobjectRefType.
        * jni.cc (_Jv_JNI_GetObjectRefType): New (stub only).
        (_Jv_JNIFunctions): Initialize GetObjectRefType.
        * gnu/classpath/jdwp/VMVirtualMachine.java,
        java/security/VMSecureRandom.java: Merge from classpath.
        * HACKING: Fix typo.
        * ChangeLog-2007: New file.
        * configure.ac: Set JAVAC, pass --disable-regen-headers to classpath.

libjava/classpath/

2008-06-28  Matthias Klose  <doko@ubuntu.com>

        * m4/ac_prog_javac.m4: Disable check for JAVAC, when
        not configured with --enable-java-maintainer-mode.
        * aclocal.m4, configure: Regenerate.
        * native/jni/gstreamer-peer/Makefile.am: Do not link with
        libclasspathnative.
        * native/jni/gstreamer-peer/Makefile.in: Regenerate.
        * tools/Makefile.am, lib/Makefile.am: Use JAVAC for setting
        JCOMPILER, drop flags not understood by gcj.

From-SVN: r137223

16 years agotree-ssa-structalias.c (callused_id, [...]): Add.
Richard Guenther [Sat, 28 Jun 2008 13:17:20 +0000 (13:17 +0000)]
tree-ssa-structalias.c (callused_id, [...]): Add.

2008-06-28  Richard Guenther  <rguenther@suse.de>

* tree-ssa-structalias.c (callused_id, var_callused,
callused_tree): Add.
(handle_pure_call): New function.
(find_func_aliases): Call it.
(find_what_p_points_to): Handle the call-used set.
(clobber_what_escaped): Likewise.
(compute_call_used_vars): New function.
(init_base_vars): Init the call-used variable.
(do_sd_constraint): Do not propagate the solution from CALLUSED
but use CALLUSED as a placeholder.
(solve_graph): Likewise.
* tree-flow-inline.h (gimple_call_used_vars): New function.
* tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
(compute_call_used_vars): Declare.
* tree-ssa-alias.c (set_initial_properties): Call
compute_call_used_vars.
(reset_alias_info): Clear call-used variables.
(add_call_clobber_ops): Assert we are not called for const/pure
functions.  Remove handling of them.
(add_call_read_ops): Handle pure functions by adding the
call-used set of variables as VUSEs.
* tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
(delete_tree_ssa): Free it.
* tree-dfa.c (remove_referenced_var): Clear the var from the
call-used bitmap.

* gcc.dg/tree-ssa/pr24287.c: Remove XFAIL.

From-SVN: r137222

16 years agotree.c (build_varargs_function_type_list): New.
Kai Tietz [Sat, 28 Jun 2008 12:41:38 +0000 (12:41 +0000)]
tree.c (build_varargs_function_type_list): New.

2008-06-28  Kai Tietz  <kai.tietz@onevision.com>

        * tree.c (build_varargs_function_type_list): New.
        (build_function_type_list_1): New.
        (build_function_type_list): Use build_function_type_list_1.
        * tree.h (build_varargs_function_type_list): New.

From-SVN: r137221

16 years agore PR target/34856 (ICE with some constant vectors)
Ulrich Weigand [Sat, 28 Jun 2008 10:47:36 +0000 (10:47 +0000)]
re PR target/34856 (ICE with some constant vectors)

PR target/34856
* config/spu/spu.c (spu_builtin_splats): Do not generate
invalid CONST_VECTOR expressions.
(spu_expand_vector_init): Likewise.

From-SVN: r137218

16 years agoCommit missing Makefile update for r137158.
Steven Bosscher [Sat, 28 Jun 2008 09:38:11 +0000 (09:38 +0000)]
Commit missing Makefile update for r137158.

From-SVN: r137216

16 years agooptabs.c (libfunc_decls): New variable.
Richard Sandiford [Sat, 28 Jun 2008 09:24:35 +0000 (09:24 +0000)]
optabs.c (libfunc_decls): New variable.

gcc/
* optabs.c (libfunc_decls): New variable.
(libfunc_decl_hash, libfunc_decl_eq): New functions.
(init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
for the same function twice.

From-SVN: r137215

16 years agoDaily bump.
GCC Administrator [Sat, 28 Jun 2008 00:17:13 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r137211

16 years agovec.cc (__aeabi_vec_dtor_cookie): Handle NULL array address.
Mark Mitchell [Fri, 27 Jun 2008 23:02:06 +0000 (23:02 +0000)]
vec.cc (__aeabi_vec_dtor_cookie): Handle NULL array address.

2008-06-27  Mark Mitchell  <mark@codesourcery.com>

* libsupc++/vec.cc (__aeabi_vec_dtor_cookie): Handle NULL array
address.
(__aeabi_vec_delete): Likewise.
(__aeabi_vec_delete3): Likewise.
(__aeabi_vec_delete3_nodtor): Likewise.

2008-06-27  Mark Mitchell  <mark@codesourcery.com>

* g++.dg/abi/arm_cxa_vec2.C: New test.

From-SVN: r137207

16 years agore PR c++/36364 (Problem with -frepo)
Jakub Jelinek [Fri, 27 Jun 2008 22:26:48 +0000 (00:26 +0200)]
re PR c++/36364 (Problem with -frepo)

PR c++/36364
* repo.c (repo_emit_p): Put const static data members initialized
by const expr into *.rpo file, just return 2 if IDENTIFIER_REPO_CHOSEN
for it is 0.

* g++.dg/template/repo9.C: New test.

From-SVN: r137205

16 years agore PR tree-optimization/36400 (points-to results wrong)
Richard Biener [Fri, 27 Jun 2008 21:54:42 +0000 (21:54 +0000)]
re PR tree-optimization/36400 (points-to results wrong)

2008-06-27  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/36400
PR tree-optimization/36373
PR tree-optimization/36344
* tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
var_nonlocal, nonlocal_tree, nonlocal_id): New globals
(update_alias_info): Remove call clobbering code.
(make_constraint_to): New helper function.
(make_escape_constraint): Likewise.
(handle_rhs_call): Use it on all pointer containing arguments.
Also mark the static chain escaped.
(handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
instead of ANYTHING.
(make_constraint_from): New helper split out from ...
(make_constraint_from_anything): ... here.
(find_func_aliases): Add constraints for escape sites.
(intra_create_variable_infos): Make constraints from NONLOCAL
for parameters.
(find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
as ANYTHING.
(clobber_what_p_points_to): Remove.
(clobber_what_escaped): New function.
(init_base_vars): Init NONLOCAL and ESCAPED.
(do_sd_constraint): Do not propagate the solution from ESCAPED
but use ESCAPED as a placeholder.
(solve_graph): Likewise.
* tree-flow.h (clobber_what_p_points_to): Remove.
(clobber_what_escaped): Declare.
* tree-ssa-alias.c (set_initial_properties): Call it.
Remove code clobbering escaped pointers.

* gcc.dg/torture/pr36373-1.c: New testcase.
* gcc.dg/torture/pr36373-2.c: Likewise.
* gcc.dg/torture/pr36373-3.c: Likewise.
* gcc.dg/torture/pr36373-4.c: Likewise.
* gcc.dg/torture/pr36373-5.c: Likewise.
* gcc.dg/torture/pr36373-6.c: Likewise.
* gcc.dg/torture/pr36373-7.c: Likewise.
* gcc.dg/torture/pr36373-8.c: Likewise.
* gcc.dg/torture/pr36373-9.c: Likewise.
* gcc.dg/torture/pr36373-10.c: Likewise.
* gcc.dg/torture/pr36400.c: Likewise.
* gcc.c-torture/execute/pta-field-1.c: Likewise.
* gcc.c-torture/execute/pta-field-2.c: Likewise.
* gcc.dg/tree-ssa/loadpre8.c: Remove XFAIL.
* gcc.dg/tree-ssa/pr24287.c: XFAIL.

From-SVN: r137204

16 years ago* config/i386/i386.md (lshrti splitter): Fix splitter predicate.
Uros Bizjak [Fri, 27 Jun 2008 21:12:04 +0000 (23:12 +0200)]
* config/i386/i386.md (lshrti splitter): Fix splitter predicate.

From-SVN: r137202

16 years agoi386.md (ashlti3, [...]): Expand using ix86_expand_binary_operator directly.
Uros Bizjak [Fri, 27 Jun 2008 20:53:34 +0000 (22:53 +0200)]
i386.md (ashlti3, [...]): Expand using ix86_expand_binary_operator directly.

* config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
ix86_expand_binary_operator directly.
(*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
for operand 2.
(*ashrti3_1): Ditto.
(*lshrti3_1): Ditto.
(*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
(ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
using only one splitter.  Conditionaly execute splitter before or
after peephole2 pass.
(ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
(x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
Use only one alternative in asm template.
(x86_64_shld): Compress operand 2 constraints. Use only one alternative
in asm template.
(*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
"J" operand constraint for operand 2.
(*ashldi3_cconly_rex64): Ditto.
(*ashrdi3_cmp_rex64): Ditto.
(*ashrdi3_cconly_rex64): Ditto.
(*lshrdi3_cmp_rex64): Ditto.
(*lshrdi3_cconly_rex64): Ditto.
* config/i386/predicates.md (const_1_to_63_operand): New predicate.
* config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
(split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
gen_x86_shrd_1.

From-SVN: r137201

16 years agore PR c++/36655 (unjustified warning for "extern template" when using -pedantic ...
Paolo Carlini [Fri, 27 Jun 2008 20:45:25 +0000 (20:45 +0000)]
re PR c++/36655 (unjustified warning for "extern template" when using -pedantic -std=c++0x)

/cp
2008-06-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/36655
* pt.c (do_decl_instantiation): In c++0x mode do not warn for
extern template.

/testsuite
2008-06-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/36655
* g++.dg/cpp0x/extern_template.C: New.

From-SVN: r137200

16 years agogimplify.c (omp_is_private): Don't return true if decl is not already private on...
Jakub Jelinek [Fri, 27 Jun 2008 19:45:14 +0000 (21:45 +0200)]
gimplify.c (omp_is_private): Don't return true if decl is not already private on #pragma omp for or #pragma...

* gimplify.c (omp_is_private): Don't return true if decl
is not already private on #pragma omp for or #pragma omp parallel for.

* gcc.dg/gomp/pr27388-3.c: Adjust dg-final.

* testsuite/libgomp.c/loop-10.c: New test.
* libgomp.c/loop-3.c (main): Add lastprivate clause.
* libgomp.c++/loop-6.C (main): Likewise.

From-SVN: r137199

16 years agore PR debug/36617 (Debug info for OpenMP code is almost non-existent)
Jakub Jelinek [Fri, 27 Jun 2008 19:42:32 +0000 (21:42 +0200)]
re PR debug/36617 (Debug info for OpenMP code is almost non-existent)

PR debug/36617
* tree-cfg.c (struct move_stmt_d): Replace block field with
orig_block and new_block fields.
(move_stmt_r): Only set TREE_BLOCK to p->new_block if
if it used to be NULL, p->orig_block or if p->orig_block is NULL.
(move_block_to_fn): Replace vars_map and new_label_map arguments
with struct move_stmt_d pointer.
(replace_block_vars_by_duplicates): New function.
(move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
all subblocks of ORIG_BLOCK to the new function.  Call
replace_block_vars_by_duplicates.
* tree-flow.h (move_sese_region_to_fn): Adjust prototype.
* omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
(expand_omp): Temporarily set input_location to the location of
region's controlling stmt.
(lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
BIND_EXPR, push ctx->block_vars and gimplification vars into
the BIND_EXPR and its block's BLOCK_VARS instead of directly
into dest function.
(lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
there are any BLOCK_VARS.
(lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
OMP_PARALLEL or OMP_TASK stmt.
(lower_omp): Save and restore input_location around the lower_omp_1
call.

* testsuite/libgomp.c/debug-1.c: New test.

From-SVN: r137198

16 years agore PR tree-optimization/36400 (points-to results wrong)
Richard Guenther [Fri, 27 Jun 2008 18:53:43 +0000 (18:53 +0000)]
re PR tree-optimization/36400 (points-to results wrong)

2008-06-27  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/36400
PR tree-optimization/36373
PR tree-optimization/36344
* tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
var_nonlocal, nonlocal_tree, nonlocal_id): New globals
(update_alias_info): Remove call clobbering code.
(make_constraint_to): New helper function.
(make_escape_constraint): Likewise.
(handle_rhs_call): Use it on all pointer containing arguments.
Also mark the static chain escaped.
(handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
instead of ANYTHING.
(make_constraint_from): New helper split out from ...
(make_constraint_from_anything): ... here.
(find_func_aliases): Add constraints for escape sites.
(intra_create_variable_infos): Make constraints from NONLOCAL
for parameters.
(find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
as ANYTHING.
(clobber_what_p_points_to): Remove.
(clobber_what_escaped): New function.
(init_base_vars): Init NONLOCAL and ESCAPED.
(do_sd_constraint): Do not propagate the solution from ESCAPED
but use ESCAPED as a placeholder.
(solve_graph): Likewise.
* tree-flow.h (clobber_what_p_points_to): Remove.
(clobber_what_escaped): Declare.
* tree-ssa-alias.c (set_initial_properties): Call it.
Remove code clobbering escaped pointers.

* gcc.dg/torture/pr36373-1.c: New testcase.
* gcc.dg/torture/pr36373-2.c: Likewise.
* gcc.dg/torture/pr36373-3.c: Likewise.
* gcc.dg/torture/pr36373-4.c: Likewise.
* gcc.dg/torture/pr36373-5.c: Likewise.
* gcc.dg/torture/pr36373-6.c: Likewise.
* gcc.dg/torture/pr36373-7.c: Likewise.
* gcc.dg/torture/pr36373-8.c: Likewise.
* gcc.dg/torture/pr36373-9.c: Likewise.
* gcc.dg/torture/pr36373-10.c: Likewise.
* gcc.dg/torture/pr36400.c: Likewise.
* gcc.c-torture/execute/pta-field-1.c: Likewise.
* gcc.c-torture/execute/pta-field-2.c: Likewise.
* gcc.dg/tree-ssa/loadpre8.c: Remove XFAIL.
* gcc.dg/tree-ssa/pr24287.c: XFAIL.

From-SVN: r137197

16 years agostl_algo.h (is_partitioned): Add in C++0x mode.
Paolo Carlini [Fri, 27 Jun 2008 17:42:18 +0000 (17:42 +0000)]
stl_algo.h (is_partitioned): Add in C++0x mode.

2008-06-27  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/stl_algo.h (is_partitioned): Add in C++0x mode.
* include/bits/algorithmfwd.h: Add.
* testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.
* testsuite/25_algorithms/is_partitioned/1.cc: New.
* testsuite/25_algorithms/is_partitioned/check_type.cc: Likewise.
* testsuite/25_algorithms/is_partitioned/requirements/
explicit_instantiation/2.cc: Likewise.
* testsuite/25_algorithms/is_partitioned/requirements/
explicit_instantiation/pod.cc: Likewise.

From-SVN: r137196

16 years agofunction.c (allocate_struct_function): Only allocate a unique funcdef_no if the decl...
Richard Sandiford [Fri, 27 Jun 2008 17:26:14 +0000 (17:26 +0000)]
function.c (allocate_struct_function): Only allocate a unique funcdef_no if the decl is nonzero.

gcc/
* function.c (allocate_struct_function): Only allocate a unique
funcdef_no if the decl is nonzero.

From-SVN: r137195

16 years agomips-protos.h (mips_split_const_insns): Declare.
Richard Sandiford [Fri, 27 Jun 2008 17:20:32 +0000 (17:20 +0000)]
mips-protos.h (mips_split_const_insns): Declare.

gcc/
* config/mips/mips-protos.h (mips_split_const_insns): Declare.
* config/mips/mips.c (mips_split_const_insns): New function.
* config/mips/mips.md (move_type): New attribute.
(mode): Move attribute definition earlier in file.  Add "TI"
and "TF".
(dword_mode): New attribute.
(type): Avoid long line.  Map "move_type"s to "type"s,
choosing "multi" for doubleword moves if appropriate.
Swap MTC/MFC comments to match their declaration order.
(extended_mips16): Default to "yes" if "move_type" is "sll0",
"type" is "branch" or "jal" is "direct".
(length): Handle "extended_mips16" first.  Make the default
"0" for "ghost" instructions.  Set the length from "move_type".
(truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
of "type", with "sll0" for the register alternative.  Remove the
"extended_mips16" attribute.
(zero_extendsidi2, *clear_upper32): Use "move_type" instead
of "type", with "shift_shift" for the register alternative.
Remove the "length" attribute.
(*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
(*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
of "type", with "andi" for the register alternative.
(*zero_extendqihi2): Likewise.
(*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
of "andi" instead of a "type" of "arith".
(*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
instead of "type".
(*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
(mov_<store>r, *mov<mode>_ra): Likewise.
(extendsidi2): Use "move_type" instead of "type", with "move"
for the register alternative.
(*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
of "type", with "signext" for the register alternative.
(*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
(*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
(fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
(fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
(floatdisf2, *branch_equality<mode>_mips16): Likewise.
(unnamed branch insn): Likewise.
(*movdi_gp32_fp64): Fold into...
(*movdi_32bit): ...here.
(*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
(*movdf_hardfloat): ...this new pattern.
(*movdf_softfloat): Remove redundant FPR alternatives.
(*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
(*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
(*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
the "move" attribute.
(*movdi_32bit): Use "move_type" instead of "type" and remove the
"length" attribute.  Use "fpload" and "fpstore" instead of "load"
and "store" for COP loads and stores.
(*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
(*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
(*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
(*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
(*movtf_mips16, *movv2sf): Likewise.
(mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
(load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
(mfhc1<mode>): Use "move_type" instead of "move".
(*low<mode>_mips16): Use "extended_mips16" instead of "length".
(loadgp_blockage): Remove the "length" attribute.
(blockage, set_got_version, update_got_version): Likewise.
(call_internal): Remove the "extended_mips16" attribute.
(call_value_internal, call_value_multiple_internal): Likewise.
* config/mips/loongson.md (mov<mode>_internal): Use "move_type"
instead of "move".
* config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
the "length" attribute.

From-SVN: r137194

16 years agoada-tree.h (SET_TYPE_LANG_SPECIFIC, [...]): Fix -Wc++-compat warnings.
Kaveh R. Ghazi [Fri, 27 Jun 2008 16:55:06 +0000 (16:55 +0000)]
ada-tree.h (SET_TYPE_LANG_SPECIFIC, [...]): Fix -Wc++-compat warnings.

* ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
-Wc++-compat warnings.
* adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
__gnat_locate_exec_on_path): Likewise.
* decl.c (annotate_value): Likewise.
* misc.c (gnat_handle_option): Likewise.
* trans.c (gnat_to_gnu, extract_encoding, decode_name,
post_error_ne_tree): Likewise.

From-SVN: r137192

16 years agoc-format.c (handle_format_attribute): Fix -Wc++-compat and/or -Wcast-qual warnings.
Kaveh R. Ghazi [Fri, 27 Jun 2008 16:53:54 +0000 (16:53 +0000)]
c-format.c (handle_format_attribute): Fix -Wc++-compat and/or -Wcast-qual warnings.

* c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
-Wcast-qual warnings.
* c-pragma.c (dpm_eq, handle_pragma_push_macro,
handle_pragma_pop_macro): Likewise.
* collect2.c (resolve_lib_name): Likewise.
* config/arc/arc.c (arc_init): Likewise.
* config/arm/arm.c (neon_builtin_compare,
locate_neon_builtin_icode): Likewise.
* config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section):
Likewise.
* config/bfin/bfin.c (bfin_init_machine_status,
bfin_optimize_loop): Likewise.
* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
* config/cris/cris.c (cris_init_expanders): Likewise.
* config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
* config/darwin.c (machopic_indirection_eq,
machopic_indirection_name, machopic_output_indirection):
Likewise.
* config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
frv_optimize_membar): Likewise.
* config/i386/cygwin.h (mingw_scan,
GCC_DRIVER_HOST_INITIALIZATION): Likewise.
* config/i386/cygwin1.c (mingw_scan): Likewise.
* config/i386/i386.c (machopic_output_stub): Likewise.
* config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
i386_pe_unique_section): Likewise.
* config/ia64/ia64.c (ia64_init_machine_status,
ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
Likewise.
* config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
* config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
* config/m68k/m68k.c (m68k_handle_option,
m68k_sched_md_init_global): Likewise.
* config/mcore/mcore.c (mcore_mark_dllexport,
mcore_mark_dllimport, mcore_unique_section): Likewise.
* config/mips/mips.c (mips_block_move_straight,
mips16_rewrite_pool_refs, mips_sim_wait_regs_2,
mips_sim_record_set): Likewise.
* config/mmix/mmix.c (mmix_init_machine_status,
mmix_encode_section_info): Likewise.
* config/pa/pa.c (pa_init_machine_status, hppa_encode_label):
Likewise.
* config/rs6000/rs6000.c (rs6000_init_machine_status,
print_operand_address, output_toc, redefine_groups,
rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
* config/s390/s390.c (s390_init_machine_status): Likewise.
* config/score/score.c (score_block_move_straight,
score_block_move_loop_body): Likewise.
* config/sparc/sparc.c (sparc_init_machine_status): Likewise.
* config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
* emit-rtl.c (find_auto_inc): Likewise.
* gcc.c (translate_options, process_command): Likewise.
* reorg.c (dbr_schedule): Likewise.
* sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
* xcoffout.c (xcoffout_declare_function): Likewise.

From-SVN: r137191

16 years agoDon't mark statements modified when we are in ipa mode
Daniel Berlin [Fri, 27 Jun 2008 16:11:35 +0000 (16:11 +0000)]
Don't mark statements modified when we are in ipa mode

From-SVN: r137189

16 years ago[multiple changes]
David Edelsohn [Fri, 27 Jun 2008 12:43:55 +0000 (08:43 -0400)]
[multiple changes]

2008-06-27  David Edelsohn  <edelsohn@gnu.org>

        * config/rs6000/t-aix52: Append large data option to LDFLAGS for
        genautomata.

2008-06-27  Edmar Wienskoski  <edmar@freescale.com>

        * config.gcc (powerpc*-*-*): Add new core e500mc.
        * config/rs6000/e500mc.md: New file.
        * config/rs6000/rs6000.c (processor_costs): Add new costs for
        e500mc.
        (rs6000_override_options): Add e500mc case to
        processor_target_table. Altivec and Spe options not allowed
        with e500mc. Add isel instruction to e500mc by
        default. Initialize rs6000_cost for e500mc.
        (rs6000_issue_rate): Set issue rate for e500mc.
        * config/rs6000/rs6000.h (processor_type): Add
        PROCESSOR_PPCE500MC.
        (ASM_CPU_SPEC): Add e500mc.
        Set TARGET_ISEL to rs6000_isel.
        * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
        (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
        * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc..
        Include e500mc.md.
        * doc/invoke.texi: Add e500mc to list of cpus.

From-SVN: r137176

16 years agore PR c/34867 (valgrind error indication in testsuite from c-lex.c:996:c_lex_with_fla...
Laurynas Biveinis [Fri, 27 Jun 2008 12:29:55 +0000 (12:29 +0000)]
re PR c/34867 (valgrind error indication in testsuite from c-lex.c:996:c_lex_with_flags for gcc.dg/cpp/charconst.c)

2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>

PR c/34867
* c-lex.c (lex_charconst): Initialize unsignedp.

From-SVN: r137175

16 years agostl_numeric.h (iota): Add in C++0x mode.
Paolo Carlini [Fri, 27 Jun 2008 10:47:27 +0000 (10:47 +0000)]
stl_numeric.h (iota): Add in C++0x mode.

2008-06-27  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/stl_numeric.h (iota): Add in C++0x mode.
* testsuite/util/testsuite_character.h (pod_int): Add operator++
in C++0x mode.
* testsuite/util/testsuite_api.h (NonDefaultConstructible): Likewise.
* testsuite/26_numerics/iota/1.cc: New.
* testsuite/26_numerics/iota/requirements/explicit_instantiation/
2.cc: Likewise.
* testsuite/26_numerics/iota/requirements/explicit_instantiation/
pod.cc: Likewise.

* include/ext/algorithm: Do not fiddle with the legacy headers.

* testsuite/26_numerics/partial_sum/1.cc: Minor changes, comments,
style.
* testsuite/26_numerics/accumulate/1.cc: Likewise.
* testsuite/26_numerics/adjacent_difference/1.cc: Likewise.
* testsuite/26_numerics/inner_product/1.cc: Likewise.

From-SVN: r137174

16 years agoutils.c (convert): When converting it to a packable version of its type...
Eric Botcazou [Fri, 27 Jun 2008 09:16:45 +0000 (09:16 +0000)]
utils.c (convert): When converting it to a packable version of its type...

* utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
version of its type, attempt to first convert its elements.

From-SVN: r137173

16 years agoFix typo in ChangeLog entry date.
Olivier Hainque [Fri, 27 Jun 2008 07:46:26 +0000 (07:46 +0000)]
Fix typo in ChangeLog entry date.

From-SVN: r137172

16 years agogimplify.c (gimplify_modify_expr_to_memset): Assert our documented assumptions.
Olivier Hainque [Fri, 27 Jun 2008 07:35:33 +0000 (07:35 +0000)]
gimplify.c (gimplify_modify_expr_to_memset): Assert our documented assumptions.

2008-06-26  Olivier Hainque  <hainque@adacore.com>

gcc/
* gimplify.c (gimplify_modify_expr_to_memset): Assert our
documented assumptions.

testsuite/
* gnat.dg/aligned_vla.adb: New test.

From-SVN: r137171

16 years agodwarf2out.c: Remove trailing white spaces.
H.J. Lu [Fri, 27 Jun 2008 05:37:52 +0000 (05:37 +0000)]
dwarf2out.c: Remove trailing white spaces.

2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>

* dwarf2out.c: Remove trailing white spaces.  Break long line
in comments.

From-SVN: r137169

16 years agoDaily bump.
GCC Administrator [Fri, 27 Jun 2008 00:17:12 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r137167

16 years agolibfuncs.h (LTI_synchronize): New libfunc_index.
Richard Sandiford [Thu, 26 Jun 2008 21:28:30 +0000 (21:28 +0000)]
libfuncs.h (LTI_synchronize): New libfunc_index.

gcc/
* libfuncs.h (LTI_synchronize): New libfunc_index.
(synchronize_libfunc): Declare.
* builtins.c (expand_builtin_synchronize): Consider using
synchronize_libfunc before falling back on an asm blockage.
* config/mips/mips.c: Include libfuncs.h
(mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.

From-SVN: r137162

16 years agors6000.c (emit_allocate_stack): Add copy_r11 parameter.
Nathan Froyd [Thu, 26 Jun 2008 20:12:41 +0000 (20:12 +0000)]
rs6000.c (emit_allocate_stack): Add copy_r11 parameter.

* config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
parameter.  Copy stack_reg to r11 where appropriate.
(no_global_regs_above): Add gpr parameter.
(rs6000_stack_info): Only add padding for SPE save area if we
are saving SPE GPRs and CR.
(saveres_routine_syms): New variable.
(FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
Define.
(rs6000_savres_routine_sym): New function.
(rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
split out of...
(rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
Tweak FPR out-of-line saving.
(rs6000_make_savres_rtx): New function.
(rs6000_use_multiple_p): New function.
(rs6000_savres_strategy): New function.
(rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
out-of-line if appropriate.
* config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
if we are optimizing for size.
(GP_SAVE_INLINE): Define.
(SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
* config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
* config/rs6000/aix.h (GP_SAVE_INLINE): Define.
* config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
(*save_fpregs_<mode>): Add use of r11.
(*restore_gpregs_<mode>): New insn.
(*return_and_restore_gpregs_<mode>): New insn.
(*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
use r11.
* config/rs6000/spe.md (*save_gpregs_spe): New insn.
(*restore_gpregs_spe): New insn.
(*return_and_restore_gpregs_spe): New insn.
* config/rs6000/predicates.md (save_world_operation): Fix check.

From-SVN: r137160

16 years agotree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at this point, so assert...
Steven Bosscher [Thu, 26 Jun 2008 20:11:07 +0000 (20:11 +0000)]
tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at this point, so assert that.

* tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
this point, so assert that.

From-SVN: r137159

16 years agocfganal.c: Include vec.h and vecprim.h.
Steven Bosscher [Thu, 26 Jun 2008 20:06:49 +0000 (20:06 +0000)]
cfganal.c: Include vec.h and vecprim.h.

* cfganal.c: Include vec.h and vecprim.h.
(compute_idf): Import from...
* tree-into-ssa (compute_idf): ...here.
* basic-block.h (compute_idf): Export.

From-SVN: r137158

16 years agoUpdate my e-mail address for my new employer.
James Lemke [Thu, 26 Jun 2008 19:46:34 +0000 (19:46 +0000)]
Update my e-mail address for my new employer.

From-SVN: r137156

16 years agoClean up ChangeLog entries.
H.J. Lu [Thu, 26 Jun 2008 17:57:43 +0000 (10:57 -0700)]
Clean up ChangeLog entries.

From-SVN: r137153

16 years agostl_algo.h (partition_copy): Add in C++0x mode.
Paolo Carlini [Thu, 26 Jun 2008 17:55:23 +0000 (17:55 +0000)]
stl_algo.h (partition_copy): Add in C++0x mode.

2008-06-26  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/stl_algo.h (partition_copy): Add in C++0x mode.
* include/bits/algorithmfwd.h: Add.
* testsuite/25_algorithms/headers/algorithm/synopsis.cc: Update.
* testsuite/25_algorithms/partition_copy/1.cc: New.
* testsuite/25_algorithms/partition_copy/check_type.cc: Likewise.
* testsuite/25_algorithms/partition_copy/requirements/
explicit_instantiation/2.cc: Likewise.
* testsuite/25_algorithms/partition_copy/requirements/
explicit_instantiation/pod.cc: Likewise.

From-SVN: r137152

16 years agoAdd missing entry
Joey Ye [Thu, 26 Jun 2008 17:46:21 +0000 (17:46 +0000)]
Add missing entry

From-SVN: r137151

16 years agoc-decl.c (merge_decls): Use !current_function_decl to check for extern declaration...
Joseph Myers [Thu, 26 Jun 2008 15:40:56 +0000 (16:40 +0100)]
c-decl.c (merge_decls): Use !current_function_decl to check for extern declaration of C99 inline...

* c-decl.c (merge_decls): Use !current_function_decl to check for
extern declaration of C99 inline function being at file scope.

testsuite:
* gcc.dg/inline-32.c, gcc.dg/inline-32a.c: New tests.

From-SVN: r137149

16 years agot-ppccomm: Remove rules that conflict with auto-generated rules.
Nathan Froyd [Thu, 26 Jun 2008 14:15:49 +0000 (14:15 +0000)]
t-ppccomm: Remove rules that conflict with auto-generated rules.

* config/rs6000/t-ppccomm: Remove rules that conflict with
auto-generated rules.

From-SVN: r137148

16 years agopointer_array.cc: New.
Chris Fairles [Thu, 26 Jun 2008 11:36:02 +0000 (11:36 +0000)]
pointer_array.cc: New.

2008-06-26  Chris Fairles  <chris.fairles@gmail.com>

        * testsuite/20_util/unique_ptr/cons/pointer_array.cc: New.
        * testsuite/20_util/unique_ptr/cons/pointer.cc: Likewise.
        * testsuite/20_util/unique_ptr/cons/pointer_array_convertible.cc:
        Likewise.
        * testsuite/20_util/unique_ptr/assign/move_array.cc: Likewise.
        * testsuite/20_util/unique_ptr/assign/move.cc: Likewise.
        * testsuite/20_util/unique_ptr/specialized_algorithms/
        comparisons_array.cc: Likewise.
        * testsuite/20_util/unique_ptr/specialized_algorithms/comparisons.cc:
        Likewise
        * testsuite/20_util/unique_ptr/specialized_algorithms/swap.cc:
        Likewise.

From-SVN: r137147

16 years agobase.h (plus, multiplies): Use __typeof__, not typeof.
Paolo Carlini [Thu, 26 Jun 2008 10:45:31 +0000 (10:45 +0000)]
base.h (plus, multiplies): Use __typeof__, not typeof.

2008-06-26  Paolo Carlini  <paolo.carlini@oracle.com>

* include/parallel/base.h (plus, multiplies): Use __typeof__,
not typeof.

From-SVN: r137145

16 years agoMakefile.in: Fix *86 kfreebsd target specific pairs.
Chris Proctor [Thu, 26 Jun 2008 10:16:26 +0000 (10:16 +0000)]
Makefile.in: Fix *86 kfreebsd target specific pairs.

2008-06-26  Chris Proctor  <chrisp_42@bigpond.com>

    gcc/ada/
* Makefile.in: Fix *86 kfreebsd target specific pairs.

    gnattools/
* configure.ac, configure: Fix target specific pairs.

From-SVN: r137144

16 years ago* testsuite/lib/target-supports.exp
Ira Rosen [Thu, 26 Jun 2008 06:31:16 +0000 (06:31 +0000)]
* testsuite/lib/target-supports.exp
(check_effective_target_vect_cmdline_needed): Add SPU to the list
of targets that do not need command line argument to enable SIMD.

From-SVN: r137142