Uros Bizjak
07f93cbdd5
march.c: Skip if -march defined.
...
* gcc.dg/march.c: Skip if -march defined.
* gcc.dg/mtune.c: Skip if -mtune defined.
* g++.old-deja/g++.jason/thunk3.C: Skip for targets with
generic thunk support.
From-SVN: r162998
2010-08-08 14:09:46 +02:00
Paolo Carlini
77fd1c1d44
cmath: Implement US 136.
...
2010-08-08 Paolo Carlini <paolo.carlini@oracle.com>
* include/c_global/cmath: Implement US 136.
* include/tr1_impl/cmath: Do not bring fpclassify, etc from namespace
std, define namespace tr1.
* testsuite/26_numerics/headers/cmath/
c99_classification_macros_c++0x.cc: New.
From-SVN: r162995
2010-08-08 10:07:16 +00:00
Kai Tietz
1159da448c
mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define _WIN64 not expanded.
...
2010-08-08 Kai Tietz <kai.tietz@onevision.com>
* config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
_WIN64 not expanded.
From-SVN: r162994
2010-08-08 09:30:08 +02:00
Nathan Froyd
8c30ead6fb
parser.c (cp_default_arg_entry): Declare.
...
* parser.c (cp_default_arg_entry): Declare. Declare a VEC of it.
(cp_unparsed_functions_entry): Declare. Declare a VEC of it.
(cp_parser) [unparsed_functions_queues]: Rename to unparsed_queues.
Change type to a VEC.
(unparsed_funs_with_default_args): Define.
(unparsed_funs_with_definitions): Define.
(push_unparsed_function_queues): New function.
(cp_parser_new): Call it.
(pop_unparsed_function_queues): New function.
(cp_parser_class_specifier): Adjust processing of unparsed functions.
(cp_parser_template_declaration_after_export): Use VEC_safe_push.
(cp_parser_save_member_function_body): Likewise.
(cp_parser_late_parsing_for_member): Call push_unparsed_function_queues
and pop_unparsed_function_queues.
(cp_parser_late_parsing_default_args): Likewise.
(cp_parser_save_default_args): Use VEC_safe_push.
From-SVN: r162992
2010-08-08 02:16:06 +00:00
Nathan Froyd
4d2fb76954
name-lookup.h (cp_label_binding): Declare.
...
* name-lookup.h (cp_label_binding): Declare. Declare a VEC type
containing it.
(cp_binding_level): Convert shadowed_labels and dead_vars_from_for
fields to VECs.
* decl.c (poplevel): Adjust for type changes.
(declare_local_label): Likewise.
From-SVN: r162991
2010-08-08 02:14:07 +00:00
GCC Administrator
daf30b2fd0
Daily bump.
...
From-SVN: r162989
2010-08-08 00:17:03 +00:00
Nathan Froyd
2bb1fc26a1
decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead of alloca.
...
* gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
of alloca.
(components_to_record): Likewise.
* gcc-interface/trans.c (gnat_to_gnu): Likewise.
* gcc-interface/utils.c (max_size): Likewise.
(build_vms_descriptor32): Likewise.
(build_vms_descriptor): Likewise.
From-SVN: r162985
2010-08-07 21:12:32 +00:00
Nathan Froyd
1145e690d2
interface.c (compare_actual_formal): Use XALLOCAVEC instead of alloca.
...
* interface.c (compare_actual_formal): Use XALLOCAVEC instead of
alloca.
(check_some_aliasing): Likewise.
* trans-intrinsic.c (gfc_conv_intrinsic_conversion): Likewise.
(gfc_conv_intrinsic_int): Likewise.
(gfc_conv_intrinsic_lib_function): Likewise.
(gfc_conv_intrinsic_cmplx): Likewise.
(gfc_conv_intrinsic_ctime): Likewise.
(gfc_conv_intrinsic_fdate): Likewise.
(gfc_conv_intrinsic_ttynam): Likewise.
(gfc_conv_intrinsic_minmax): Likewise.
(gfc_conv_intrinsic_minmax_char): Likewise.
(gfc_conv_intrinsic_ishftc): Likewise.
(gfc_conv_intrinsic_index_scan_verify): Likewise.
(gfc_conv_intrinsic_merge): Likewise.
(gfc_conv_intrinsic_trim): Likewise.
* trans.c (gfc_trans_runtime_error_vararg): Likewise.
From-SVN: r162984
2010-08-07 21:10:45 +00:00
Uros Bizjak
f6ddf131f0
re PR target/45213 ("suffix or operands invalid for `push'" triggered by optimisations on x86_64)
...
PR target/45213
* config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
to output 32bit SFmode immediate as 8 byte sign extended value.
testsuite/ChangeLog:
PR target/45213
* gcc.target/i386/pr45213.c: New test.
From-SVN: r162983
2010-08-07 22:32:30 +02:00
Jerry DeLisle
a4ed58ce81
re PR fortran/45143 ([F2008,corrig1] Endless loop with unlimited edit descriptor)
...
2010-08-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/45143
* gfortran.dg/fmt_error_11.f03: New test.
From-SVN: r162979
2010-08-07 12:10:25 +00:00
Jerry DeLisle
da0747b9b5
re PR fortran/45143 ([F2008,corrig1] Endless loop with unlimited edit descriptor)
...
2010-08-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/45143
* io/format.c: Remove fnode storage structure definitions, moving these
to format.h. (parse_format_list): Add check for data descriptors,
taking care of nested formats. Adjust calling parameters to pass a
check flag. (parse_format): Likewise.
* io/format.h: Add structures moved from format.c.
From-SVN: r162978
2010-08-07 12:03:23 +00:00
Marcus Shawcroft
17fec01dd4
By ramana for Marcus Shawcroft.
...
2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
* config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
(SUBWORD_BOOL_CAS): Likewise.
(SUBWORD_SYNC_OP): Likewise.
(SUBWORD_TEST_AND_SET): Likewise.
(FETCH_AND_OP_WORD): Parenthesise INF_OP
(SUBWORD_SYNC_OP): Likewise.
(OP_AND_FETCH_WORD): Likewise.
* lib/target-supports.exp (check_effective_target_sync_int_long):
Add arm*-*-linux-gnueabi.
(check_effective_target_sync_char_short): Likewise.
From-SVN: r162977
2010-08-07 09:31:14 +00:00
Ramana Radhakrishnan
b0c131113e
Cortex A9 VFP Pipeline description.
...
2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
* config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
* config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
(arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
(arm_adjust_cost): Split into xscale_sched_adjust_cost and a
generic part.
(cortex_a9_sched_adjust_cost): New function.
(xscale_sched_adjust_cost): New function.
* config/arm/arm-protos.h (struct tune_params): New field
sched_adjust_cost.
* config/arm/arm-cores.def: Adjust costs for cortex-a9.
From-SVN: r162976
2010-08-07 09:20:41 +00:00
Nathan Froyd
e35546016b
decl.c (subst_pair): Declare.
...
* gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
(build_subst_list): Return a VEC instead of a tree.
(build_variant_list): Take a VEC for subst_list. Adjust
accordingly.
(create_field_decl_from): Likewise.
(create_variant_part_from): Likewise.
(copy_and_substitute_in_size): Likewise.
(gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
Free the built vector.
From-SVN: r162975
2010-08-07 04:26:26 +00:00
GCC Administrator
c93cc12322
Daily bump.
...
From-SVN: r162973
2010-08-07 00:17:14 +00:00
Eric Botcazou
e0c7ff2305
re PR target/44942 (Bug in argument passing of long double)
...
PR target/44942
* config/sparc/sparc.c (function_arg_advance): Always take into account
the padding, if any.
From-SVN: r162967
2010-08-06 23:22:52 +00:00
Thomas Koenig
8a0f25c3e7
re PR fortran/45159 (Unnecessary temporaries)
...
2010-08-06 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/45159
* dependency.c (check_section_vs_section): Handle cases where
the start expression coincides with the lower or upper
bound of the array.
2010-08-06 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/45159
* gfortran.dg/dependency_31.f90: New test.
From-SVN: r162966
2010-08-06 22:33:37 +00:00
David Malcolm
cd6b2fa0e7
hook.in: Rename variable dir to dir_.
...
libstdc++-v3/
* python/hook.in: Rename variable dir to dir_.
Co-Authored-By: Jan Kratochvil <jan.kratochvil@redhat.com>
From-SVN: r162962
2010-08-06 20:43:04 +00:00
Dan Witte
7862d49629
Remove warnings
...
From-SVN: r162959
2010-08-06 20:05:33 +00:00
Anthony Green
833bb7dfad
Add missing commit from patch earlier today
...
From-SVN: r162958
2010-08-06 20:02:41 +00:00
Thomas Koenig
6a57b9eeea
dependency_30.f90: Fix incorrect dg-do line.
...
2010-08-06 Thomas Koenig <tkoenig@gcc.gnu.org>
* gfortran.dg/dependency_30.f90: Fix incorrect dg-do line.
From-SVN: r162957
2010-08-06 19:54:34 +00:00
Jason Merrill
b2edc92147
* include/std/thread: Add deleted thread(thread&).
...
From-SVN: r162954
2010-08-06 15:41:23 -04:00
Jason Merrill
309714d438
typeck.c (complete_type_or_maybe_complain): Split out from...
...
* typeck.c (complete_type_or_maybe_complain): Split out from...
(complete_type_or_else): Here.
(build_class_member_access_expr): Call it.
(finish_class_member_access_expr): Likewise.
* call.c (build_special_member_call): Likewise.
* cvt.c (build_expr_type_conversion): Likewise.
* init.c (build_new): Likewise.
* typeck2.c (build_functional_cast): Likewise.
* cp-tree.h: Declare it.
* init.c (build_value_init): Add complain parm.
(build_value_init_noctor): Likewise.
(perform_member_init): Pass it.
(expand_aggr_init_1): Likewise.
(build_new_1): Likewise.
(build_vec_init): Likewise.
* pt.c (tsubst_expr): Likewise.
* typeck2.c (build_functional_cast): Likewise.
* cp-tree.h: Adjust.
* tree.c (build_target_expr_with_type): Handle error_mark_node.
From-SVN: r162953
2010-08-06 15:35:01 -04:00
Jason Merrill
0c32fb95f0
typeck.c (decay_conversion): Any expression with type nullptr_t decays to nullptr.
...
* typeck.c (decay_conversion): Any expression with type nullptr_t
decays to nullptr.
From-SVN: r162952
2010-08-06 15:34:49 -04:00
Paolo Carlini
00e9a94486
tuple (pack_arguments): Rename to forward_as_tuple and simplify, per US 98 and US 99.
...
2010-08-06 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/tuple (pack_arguments): Rename to forward_as_tuple
and simplify, per US 98 and US 99.
* testsuite/20_util/tuple/creation_functions/pack_arguments.cc:
Rename to...
* testsuite/20_util/tuple/creation_functions/forward_as_tuple.cc:
... this, adjust.
* testsuite/20_util/pair/piecewise.cc: Adjust.
From-SVN: r162948
2010-08-06 14:46:08 +00:00
Eric Botcazou
f25496f352
decl.c (gnat_to_gnu_entity): Do not build an allocator for large imported objects.
...
* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
allocator for large imported objects.
From-SVN: r162947
2010-08-06 12:58:04 +00:00
Dan Witte
49f6cd1f25
Add OS/2 Support
...
Co-Authored-By: Walter Meinl <wuno@lsvw.de>
From-SVN: r162946
2010-08-06 12:36:26 +00:00
Dan Horák
3d420bdf4d
Define libffi macros carefully
...
From-SVN: r162945
2010-08-06 12:26:52 +00:00
Richard Guenther
0b4b14ac40
tree-ssa-ccp.c (struct prop_value_d): Add mask member.
...
2010-08-06 Richard Guenther <rguenther@suse.de>
* tree-ssa-ccp.c (struct prop_value_d): Add mask member.
(dump_lattice_value): Dump it.
(get_default_value): Adjust.
(get_constant_value): Likewise.
(set_value_varying): Likewise.
(set_lattice_value): Make sure to not go up the lattice
with bitwise constant values.
(get_value_for_expr): Handle ADDR_EXPRs.
(value_to_double_int): New function.
(get_value_from_alignment): Likewise.
(do_dbg_cnt): Adjust.
(ccp_lattice_meet): Handle partially constant values.
(bit_value_unop_1): New function.
(bit_value_binop_1): Likewise.
(bit_value_unop): Likewise.
(bit_value_binop): Likewise.
(evaluate_stmt): Track partially constant values if
flag_tree_bit_ccp is set.
(ccp_fold_stmt): Dump if we folded a predicate.
(ccp_visit_stmt): Adjust.
* common.opt (ftree-bit-ccp): New flag.
* doc/invoke.texi (ftree-bit-ccp): Document.
* opts.c (decode_options): Enable bit-CCP at -O1.
* gcc.dg/tree-ssa/ssa-dce-3.c: XFAIL.
* gcc.dg/tree-ssa/pr23744.c: Disable CCP.
* gcc.dg/tree-ssa/pr25382.c: Likewise.
* gcc.dg/tree-ssa/ssa-ccp-30.c: New testcase.
* gcc.dg/tree-ssa/ssa-ccp-31.c: Likewise.
* gcc.dg/tree-ssa/ssa-ccp-32.c: Likewise.
* gcc.dg/tree-ssa/ssa-ccp-33.c: Likewise.
* gcc.c-torture/execute/20100805-1.c: Likewise.
From-SVN: r162943
2010-08-06 11:47:31 +00:00
Paolo Carlini
c2653d8fc2
tuple (begin, end): Remove per GB 87.
...
2010-08-06 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/tuple (begin, end): Remove per GB 87.
* testsuite/20_util/tuple/range_access.cc: Remove.
From-SVN: r162942
2010-08-06 11:28:50 +00:00
Paolo Carlini
cd6b4a4bca
ratio (ratio_less): Improve, use ratio_divide to avoid more overflows.
...
2010-08-06 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/ratio (ratio_less): Improve, use ratio_divide to avoid
more overflows.
* testsuite/20_util/ratio/comparisons/comp1.cc: Extend.
* testsuite/20_util/ratio/comparisons/comp2.cc: Likewise.
From-SVN: r162941
2010-08-06 08:58:27 +00:00
Michael Kohler
0af2372948
Fix spelling errors
...
From-SVN: r162938
2010-08-06 05:45:23 +00:00
Evan Phoenix
07b6d9efd9
Fix SELinux test
...
From-SVN: r162937
2010-08-06 05:40:15 +00:00
Matthias Klose
4736718a4e
Improve libffi comments
...
From-SVN: r162936
2010-08-06 05:28:37 +00:00
Anthony Green
3ac097a580
Enable build with microsoft compiler
...
From-SVN: r162935
2010-08-06 05:24:11 +00:00
Oliver Kiddle
fc28e435cf
Enable build with sun compiler
...
From-SVN: r162933
2010-08-06 04:55:25 +00:00
Conrad Irwin
f2e994f3c6
Add closure API example to documentation
...
From-SVN: r162932
2010-08-06 04:45:46 +00:00
David Daney
8909ccf5d1
* class.c (build_utf8_ref): Fix code formatting from previous commit.
...
From-SVN: r162931
2010-08-06 04:11:29 +00:00
David Daney
5ff474fc5c
* class.c (build_utf8_ref): Make decl DECL_USER_ALIGN.
...
From-SVN: r162930
2010-08-06 04:02:42 +00:00
Alan Modra
4942323e5d
invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable and -mrelocatable-lib description.
...
* doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
and -mrelocatable-lib description.
From-SVN: r162929
2010-08-06 12:16:44 +09:30
GCC Administrator
ca542437ef
Daily bump.
...
From-SVN: r162928
2010-08-06 00:17:23 +00:00
Bernd Schmidt
5444da31b4
From Martin Thuresson <martint@google.com>
...
* postreload.c (reload_cse_simplify_operands): Use
SET_REGNO_RAW instead of SET_REGNO.
* caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
SET_REGNO.
* ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
instead of SET_REGNO.
* rtl.h (SET_REGNO_RAW): New macro.
From-SVN: r162924
2010-08-05 22:58:35 +00:00
Eric Botcazou
c04fc4f0c7
rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask computations.
...
* rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
computations. Fix formatting issues.
(num_sign_bit_copies1): Likewise.
(canonicalize_condition): Likewise.
From-SVN: r162923
2010-08-05 22:18:33 +00:00
Richard Henderson
bd95721f86
Replace exact_log2(x & -x) in favor of more direct computation.
...
* toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
(floor_log2): Use clz_hwi.
(exact_log2): Use ctz_hwi.
* toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
* builtins.c (fold_builtin_bitop): Use them.
* simplify-rtx.c (simplify_const_unary_operation): Likewise.
* combine.c (get_pos_from_mask): Use ctz_hwi.
* double-int.c (double_int_ctz): Likewise.
* explow.c (force_reg): Likewise.
* tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
From-SVN: r162920
2010-08-05 12:41:31 -07:00
Richard Henderson
55b324a67c
re PR target/45189 (New stack alignment test failures)
...
PR target/45189
Fix unwind for i386 stack re-alignment.
From-SVN: r162919
2010-08-05 11:04:58 -07:00
Richard Guenther
29e9efdf75
expr.c (store_expr): Use emit_block_move only if both source and target are MEMs.
...
2010-08-05 Richard Guenther <rguenther@suse.de>
* expr.c (store_expr): Use emit_block_move only if both
source and target are MEMs. Use store_bit_field if only
the target is a MEM.
From-SVN: r162918
2010-08-05 16:37:38 +00:00
Richard Henderson
c3576fa73f
re PR target/45189 (New stack alignment test failures)
...
PR 45189
Unbreak ia64 build after last dwarf2out.c change.
From-SVN: r162917
2010-08-05 08:39:54 -07:00
Nicolas Setton
acdb4da79d
gcov.c (flag_display_progress): New static variable.
...
* gcov.c (flag_display_progress): New static variable.
(main): Display progress info on standard output if requested.
(options): Add -d/--display-progress.
(print_usage): Print them.
(process_args): Handle them.
* doc/gcov.texi: Document them.
From-SVN: r162916
2010-08-05 15:21:13 +00:00
Andi Kleen
d2c57fe97e
lto-plugin.c: Include <hashtab.h>
...
* lto-plugin.c: Include <hashtab.h>
(sym_aux): Add next_conflict field to save conflict chains.
(plugin_file_info): Add conflicts symtab.
(parse_table_entry): Initialize aux->next_conflict.
(process_symtab): Increment found.
(dump_symtab): Add.
(finish_conflict_resolution): Add.
(free_symtab): Add.
(write_resolution): Remove symbols loop and move into
dump_symtab. Call dump_symtab for main symbol and conflicts table.
Call free_symtab to free conflicts table.
(SWAP): Add.
(eq_sym): Add.
(hash_sym): Add.
(symbol_strength): Add.
(resolve_conflicts): Add.
(claim_file_handler): Add n variable. Check return value of
process_symtab. Call resolve_conflicts.
From-SVN: r162915
2010-08-05 14:25:45 +00:00
Martin Jambor
2645f11a7c
re PR testsuite/42855 (FAIL: gcc.dg/tree-ssa/pr42585.c scan-tree-dump-times optimized *)
...
2010-08-05 Martin Jambor <mjambor@suse.cz>
PR testsuite/42855
* testsuite/gcc.dg/tree-ssa/pr42585.c: Skip dump scan on powerpc
and arm.
From-SVN: r162913
2010-08-05 15:36:18 +02:00