Ira Rosen
966308b352
costmodel-vect-iv-9.c: Add noinline attribute to main1().
...
* gcc.dg/vect/costmodel/spu/costmodel-vect-iv-9.c: Add noinline
attribute to main1().
* gcc.dg/vect/costmodel/spu/costmodel-vect-33.c: Increase the loop
bound in order to make it worth to vectorize the loop.
* gcc.dg/vect/costmodel/spu/costmodel-vect-76b.c: Likewise.
From-SVN: r137342
2008-07-02 07:04:18 +00:00
Kaveh R. Ghazi
7a6942ad82
alpha.c (alpha_need_linkage, [...]): Fix -Wc++-compat and/or -Wcast-qual warnings.
...
* config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
Fix -Wc++-compat and/or -Wcast-qual warnings.
* config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
gen_regparm_prefix): Likewise.
* vmsdbgout.c (write_modbeg, lookup_filename,
vmsdbgout_source_line, vmsdbgout_init): Likewise.
From-SVN: r137341
2008-07-02 06:43:45 +00:00
Danny Smith
2038497682
mingw32.h (TARGET_USE_JCR_SECTION): Undef to let defaults.h definition apply.
...
* config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
defaults.h definition apply.
From-SVN: r137340
2008-07-02 06:38:33 +00:00
Jerry DeLisle
45432cd049
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
2008-07-02 04:01:57 +00:00
Jerry DeLisle
bdd3085e66
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
2008-07-02 03:58:57 +00:00
GCC Administrator
36249aadb3
Daily bump.
...
From-SVN: r137332
2008-07-02 00:17:10 +00:00
Joseph Myers
b61b26e45f
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
2008-07-01 23:15:47 +01:00
Daniel Jacobowitz
4d2a9850cf
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
2008-07-01 20:49:40 +00:00
Daniel Jacobowitz
f83c7f631f
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
2008-07-01 20:48:59 +00:00
Steve Ellcey
103a641100
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
2008-07-01 20:46:31 +00:00
Uros Bizjak
f3e10a2bd8
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
2008-07-01 18:13:40 +02:00
Kenneth Zadeck
a8f77badd9
Marked changelog entry with PR rtl-optimization/34744
...
From-SVN: r137318
2008-07-01 13:56:28 +00:00
Andrew Haley
298b7d2bc5
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
2008-07-01 12:56:08 +00:00
Richard Guenther
c0d459f0e6
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
2008-07-01 11:05:17 +00:00
Martin Jambor
b6e99746ac
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
2008-07-01 10:54:18 +02:00
Eric Botcazou
ab652c7235
* gnat.dg/pack10.adb: New test.
...
From-SVN: r137311
2008-07-01 08:21:31 +00:00
Kaveh R. Ghazi
3043c80496
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
2008-07-01 02:05:41 +00:00
GCC Administrator
84ffbdb65e
Daily bump.
...
From-SVN: r137302
2008-07-01 00:17:21 +00:00
Andy Hutchinson
0f0b26139f
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
2008-06-30 22:38:34 +00:00
Uros Bizjak
33af070fac
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
2008-06-30 23:24:15 +02:00
Jakub Jelinek
55b3fc29ab
Fix up a misplaced ChangeLog entry.
...
From-SVN: r137288
2008-06-30 22:49:23 +02:00
Jakub Jelinek
b2febff9b7
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
2008-06-30 22:41:29 +02:00
Kenneth Zadeck
727683a51c
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
2008-06-30 19:31:42 +00:00
Kenneth Zadeck
370f38e847
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
2008-06-30 19:28:24 +00:00
H.J. Lu
5bb7759886
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
2008-06-30 11:00:42 -07:00
Joey Ye
38aa4d08b7
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
2008-06-30 10:51:49 -07:00
Aaron W. LaFramboise
aad416fbb5
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
2008-06-30 06:21:19 -06:00
Ira Rosen
e2cefdd9d0
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
2008-06-30 11:43:55 +00:00
Richard Guenther
183ae5958e
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
2008-06-30 11:39:53 +00:00
Alfred E. Heggestad
e3ec709716
backward_warning.h: Fix typo.
...
2008-06-30 Alfred E. Heggestad <aeh@db.org>
* include/backward/backward_warning.h: Fix typo.
From-SVN: r137269
2008-06-30 10:48:48 +00:00
GCC Administrator
65d9230fb3
Daily bump.
...
From-SVN: r137265
2008-06-30 00:17:10 +00:00
Paolo Carlini
1ffe7b6ed2
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
2008-06-29 21:44:57 +00:00
Krister Walfridsson
323ff90332
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
2008-06-29 21:41:03 +00:00
Andreas Schwab
6ae89ea8fe
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
2008-06-29 21:27:46 +00:00
Andrew Jenner
5b5b098dd4
MAINTAINERS (Write After Approval): Add myself.
...
* MAINTAINERS (Write After Approval): Add myself.
From-SVN: r137258
2008-06-29 20:17:45 +00:00
Andreas Schwab
c2058aa42f
* config/rs6000/x-linux64: Remove never used file.
...
From-SVN: r137257
2008-06-29 19:36:02 +00:00
Krister Walfridsson
d812ec939c
MAINTAINERS: Update my email address.
...
2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
* MAINTAINERS: Update my email address.
From-SVN: r137256
2008-06-29 19:21:49 +00:00
Thomas Koenig
986a8d11c7
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
2008-06-29 19:06:06 +00:00
Jerry DeLisle
082b0571b5
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
2008-06-29 18:56:08 +00:00
Paolo Carlini
a5a6b58639
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
2008-06-29 15:46:50 +00:00
Richard Guenther
faf2ecc57e
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
2008-06-29 15:44:00 +00:00
Paolo Carlini
b03717765d
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
2008-06-29 11:08:26 +00:00
Jakub Jelinek
7dfab247a1
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
2008-06-29 12:39:05 +02:00
Ira Rosen
e6f4b8ccd2
pr36493.c: Require vect_long.
...
* gcc.dg/vect/pr36493.c: Require vect_long.
From-SVN: r137247
2008-06-29 06:57:39 +00:00
Kaveh R. Ghazi
572e5ae36a
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
2008-06-29 05:36:20 +00:00
Kaveh R. Ghazi
4dc6c528c2
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
2008-06-29 04:39:16 +00:00
GCC Administrator
4152a484b4
Daily bump.
...
From-SVN: r137243
2008-06-29 00:17:17 +00:00
Jerry DeLisle
23b1e6acf3
namelist_50.f90: New test.
...
2008-06-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
* gfortran.dg/namelist_50.f90: New test.
From-SVN: r137239
2008-06-28 23:11:53 +00:00
Paolo Carlini
d9be9bb3c6
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
2008-06-28 22:39:59 +00:00
Jerry DeLisle
7b063fdc13
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
2008-06-28 21:46:53 +00:00