aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-11-10decl.c (gnat_to_gnu_entity): Do not set DECL_ARTIFICIAL on the reused DECL ↵Eric Botcazou4-6/+57
node coming from a renamed object. * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set DECL_ARTIFICIAL on the reused DECL node coming from a renamed object. Set DECL_IGNORED_P on the DECL node built for renaming entities if they don't need debug info. From-SVN: r166530
2010-11-10re PR target/46407 (rx-elf --enable-werror-all build failure)Joern Rennecke3-4/+11
PR target/46407 * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon. * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp with ATTRIBUTE_UNUSED. (valid_psw_flag): Constify parameter which. (rx_memory_move_cost): Change type of parameter regclass to reg_class_t. From-SVN: r166529
2010-11-10hashtable.h (_Hashtable<>::_Insert_Conv_Type, [...]): Change to private.Paolo Carlini2-3/+8
2010-11-10 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/hashtable.h (_Hashtable<>::_Insert_Conv_Type, _Hashtable<>::_Insert_Return_Type): Change to private. From-SVN: r166528
2010-11-10re PR tree-optimization/46398 (early FRE miscompiles simple testcase)Richard Biener4-4/+50
2010-11-10 Richard Guenther <rguenther@suse.de> PR tree-optimization/46398 * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs. * gcc.dg/torture/pr46398.c: New testcase. From-SVN: r166527
2010-11-10Add PR marker to ChangeLog entry:Joern Rennecke1-1/+2
PR middle-end/44766 * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst. From-SVN: r166526
2010-11-10unique_ptr.h: Use static_assert in constexpr constructors.Jonathan Wakely4-10/+28
2010-11-10 Jonathan Wakely <jwakely.gcc@gmail.com> * include/bits/unique_ptr.h: Use static_assert in constexpr constructors. * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Remove xfails. * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust dg-error line number. From-SVN: r166525
2010-11-10re PR rtl-optimization/44764 (ok_for_base_p_1: unused parameter regno)Joern Rennecke2-1/+5
PR rtl-optimization/44764 * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED. From-SVN: r166524
2010-11-10re PR target/44760 (iq2000.md warnings)Joern Rennecke4-36/+43
PR target/44760 * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon. (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to GP_REG_OR_PSEUDO_STRICT_P. * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for unexpected alternative. (*movsf_internal): Likewise. (indirect_jump): Replace call to non-existant function with call to internal_error. (tablejump): Likewise. * config/iq2000/iq2000.c: Include df.h . (iq2000_function_arg_advance): Use CONST_CAST2. (compute_frame_size, iq2000_expand_prologue): Remove unused variables. (iq2000_can_eliminate): Call leaf_function_p instead of testing for a non-zero function address. (iq2000_initial_elimination_offset): Add gcc_unreachable for unexpected value of FROM. (symbolic_expression_p): Delete. (iq2000_function_value): Constify func. (expand_one_builtin): Use expand_normal. (iq2000_print_operand): Don't print VALUE if calculating it failed. From-SVN: r166523
2010-11-10re PR fortran/46331 (Compilation time long with simple function in array ↵Jerry DeLisle3-48/+40
constructor) 2010-11-09 Jerry DeLisle <jvdelisle@gcc.gnu.org> Mikael Morin <mikael@gcc.gnu.org> PR fortran/46331 * intrinsic.c: Correctly set the pure attributes for intrinsic functions. * expr.c (check_specification_function): Remove this function and move its code into gfc_is_constant_expr. (gfc_is_constant_expr): Change the order of checks by checking for non-constant arguments first. Then, check for initialization functions, followed by intrinsics. Co-Authored-By: Mikael Morin <mikael@gcc.gnu.org> From-SVN: r166520
2010-11-10gty.texi (GTY Options): Clarify that variable_size produces allocators ↵Laurynas Biveinis2-7/+58
taking size in bytes... 2010-11-09 Laurynas Biveinis <laurynas.biveinis@gmail.com> PR/46268 * doc/gty.texi (GTY Options): Clarify that variable_size produces allocators taking size in bytes, compare with length option. Add size calculation example. (Invoking the garbage collector): Ensure that sentences are followed by two spaces. Describe that pointer fields must be initialized at ggc_collect call. (Troubleshooting): New section. From-SVN: r166519
2010-11-10open_dev_null.f90: New test.Jerry DeLisle2-0/+13
2010-11-09 Jerry DeLisle <jvdelisle@gcc.gnu.org> * gfortran.dg/open_dev_null.f90: New test. From-SVN: r166518
2010-11-10re PR tree-optimization/40436 (0.5% code size regression caused by r147852)Jan Hubicka6-9/+36
PR tree-optimization/40436 * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin. * tree-inline.c (estimate_num_insns): Inexpensive builtins are like normal instructions; be sure bultin is not implemented in this file; compute non-zero return cost. (init_inline_once): Reduce builtin_call_cost to 1; set return cost. * tree-inline.h (eni_weights_d): Add return cost. From-SVN: r166517
2010-11-10c-parser.c (c_parser_struct_declaration): Handle declaration specifiers ↵Joseph Myers4-1/+18
followed by CPP_CLOSE_BRACE. * c-parser.c (c_parser_struct_declaration): Handle declaration specifiers followed by CPP_CLOSE_BRACE. testsuite: * gcc.dg/struct-semi-4.c: New test. From-SVN: r166516
2010-11-10exgettext: Look for .cc files.Ian Lance Taylor3-14/+41
* exgettext: Look for .cc files. Look in subdirectories of language subdirectories. * EXCLUDES: Update comment. From-SVN: r166515
2010-11-10Daily bump.GCC Administrator1-1/+1
From-SVN: r166514
2010-11-09Improve powerpc floating point roundingMichael Meissner8-240/+351
From-SVN: r166510
2010-11-09re PR target/43808 (-fipa-reference -fschedule-insns -fstrict-aliasing ↵Jakub Jelinek4-4/+36
causes two gfortran check failures) PR target/43808 * cfgexpand.c (partition_stack_vars): Call update_alias_info_with_stack_vars unconditionally. (update_alias_info_with_stack_vars): Allow unused unreferenced vars when not optimizing. * gfortran.dg/pr43808.f90: New test. From-SVN: r166509
2010-11-09re PR tree-optimization/46036 (verify_ssa failed: definition in block 3 ↵Sebastian Pop4-1/+26
follows the use) Fix PR46036. 2010-11-09 Sebastian Pop <sebastian.pop@amd.com> PR tree-optimization/46036 * tree-if-conv.c (predicate_bbs): Call unshare_expr before add_to_dst_predicate_list. * gfortran.dg/lto/pr46036_0.f90: New. From-SVN: r166508
2010-11-09re PR testsuite/45663 (New test failures)Jakub Jelinek2-7/+11
PR middle-end/45663 * gcc.dg/guality/sra-1.c: Move all gdb-test lines to the second bar invocation instead of first. From-SVN: r166505
2010-11-09re PR debug/46171 (ICE: in gen_rtx_SUBREG, at emit-rtl.c:774 with ↵Jakub Jelinek4-21/+88
-fno-tree-dce -g) PR debug/46171 * df-problems.c (struct dead_debug_use, struct dead_debug): Move earlier. (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG argument, call dead_debug_reset when adding REG_UNUSED note. (dead_debug_reset): New function. (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and df_create_unused_note callers. * gcc.dg/pr46171.c: New test. From-SVN: r166504
2010-11-09* config/fr30/fr30.c: Include "df.h".Anatoly Sokolov2-0/+5
From-SVN: r166503
2010-11-09Cache stat values, reduce syscallsJanne Blomqvist2-18/+44
From-SVN: r166502
2010-11-09re PR target/44759 (mn10300.md signed/unsigned comparisons)Joern Rennecke3-11/+16
PR target/44759 * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of conditional to type of S. (mn10300_function_arg): Remove unused variable align. (mn10300_arg_partial_bytes): Likewise. * config/mn10300/mn10300.md (attribute cpu): Cast value to enum attr_cpu. From-SVN: r166500
2010-11-09re PR target/44755 (picochip.md enum types mismatch)Joern Rennecke6-55/+92
PR target/44755 * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file. * config/t-pnt16-warn: New file. * config/picochip/picochip.c (picochip_emit_stack_allocate): Use add_reg_note. (picochip_emit_save_register): Likewise. (picochip_emit_restore_register): Remove variable insn. (picochip_legitimize_address): Don't use C++ style comments. (picochip_legitimize_reload_address): Likewise. (reorder_var_tracking_notes): Remove variable vliw_start. (picochip_reorg): Cast first arguemnt to emit_note_after to enum insn_note. (picochip_expand_builtin_2op): Use EXPAND_NORMAL. (picochip_expand_builtin_3op): Likewise. (picochip_expand_builtin_2opvoid): Likewise. (picochip_expand_array_get, picochip_expand_array_put): Likewise. (picochip_expand_array_testport): Likewise. (picochip_init_builtins): Remove unused variables. * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO to unsigned long, and output it as such. (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED. * config/picochip/picochip.md (movhicc): Remove nonsense statement. (schedType): Cast result of picochip_schedule_type to enum attr_schedType. From-SVN: r166499
2010-11-09re PR tree-optimization/46355 (ICE: SIGSEGV in create_preheader ↵Richard Guenther4-1/+31
(cfgloopmanip.c:1336) with -O -fstrict-overflow -ftree-loop-distribution) 2010-11-09 Richard Guenther <rguenther@suse.de> PR tree-optimization/46355 * tree-loop-distribution.c (tree_loop_distribution): Do not distribute loops without a single exit. * gcc.dg/pr46355.c: New testcase. From-SVN: r166498
2010-11-09re PR rtl-optimization/46237 (SPECint2006 403.gcc fails with -mzarch -m31)Andreas Krebbel2-0/+23
2010-11-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> PR rtl-optimization/46237 * ira-conflicts.c (ira_build_conflicts): Record conflicts for call saved hard regs if they might get partially clobbered. From-SVN: r166495
2010-11-09algobase.h (equal): Call parallel variant for applicable overloads.François Dumont2-4/+8
2010-11-09 François Dumont <francois.cppdevs@free.fr> Johannes Singler <singler@kit.edu> * include/parallel/algobase.h (equal): Call parallel variant for applicable overloads. Co-Authored-By: Johannes Singler <singler@kit.edu> From-SVN: r166494
2010-11-09pdp11.md (lshrsi3, lshrhi3): Use add for decrement.Paul Koning2-2/+7
* config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement. From-SVN: r166493
2010-11-09re PR tree-optimization/46177 (ICE: in prop_phis, at ↵Richard Guenther4-29/+36
tree-loop-distribution.c:327 with -fno-tree-copy-prop -ftree-loop-distribution) 2010-11-09 Richard Guenther <rguenther@suse.de> PR tree-optimization/46177 * tree-loop-distribution.c (prop_phis): Remove. (generate_builtin): Re-use the old loop exit edge to avoid needing to update PHI nodes. * gcc.dg/pr46177-2.c: New testcase. From-SVN: r166492
2010-11-09ix86_expand_split_stack_prologue (args_size): Change type to unsigned ↵Joern Rennecke2-4/+8
HOST_WIDE_INT. * ix86_expand_split_stack_prologue (args_size): Change type to unsigned HOST_WIDE_INT. From-SVN: r166491
2010-11-09re PR libfortran/46373 (fflush called when reading from a string)Jerry DeLisle2-1/+8
2010-11-09 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/46373 * io/transfer.c (data_transfer_init): Do not call flush_if_preconnected if this is an internal unit. From-SVN: r166490
2010-11-09re PR tree-optimization/46312 (gcc.dg/vec-scal-opt2.c fails for ARM targets.)Richard Guenther4-0/+16
2010-11-09 Richard Guenther <rguenther@suse.de> PR testsuite/46312 * gcc.dg/vec-scal-opt.c: Move ... * gcc.dg/vect/vect-scal-opt.c: ... here. * gcc.dg/vec-scal-opt1.c: Move ... * gcc.dg/vect/vect-scal-opt1.c: ... here. * gcc.dg/vec-scal-opt2.c: Move ... * gcc.dg/vect/vect-scal-opt2.c: ... here. From-SVN: r166489
2010-11-09* MAINTAINERS: Updated my email address.David Edelsohn2-2/+6
From-SVN: r166488
2010-11-09stl_tree.h (_Rb_tree<>::_M_const_cast_iter): Add and use it throughout.Paolo Carlini2-6/+13
2010-11-09 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/stl_tree.h (_Rb_tree<>::_M_const_cast_iter): Add and use it throughout. From-SVN: r166487
2010-11-09Call get_input_file_name to get file name.H.J. Lu2-2/+12
2010-11-09 H.J. Lu <hongjiu.lu@intel.com> PR bootstrap/46392 * gengtype-parse.c (type): Call get_input_file_name to get file name. From-SVN: r166486
2010-11-09utils.c (save_gnu_tree): Improve comments.Eric Botcazou2-8/+12
* gcc-interface/utils.c (save_gnu_tree): Improve comments. (get_gnu_tree): Likewise. From-SVN: r166485
2010-11-09tree.h (contains_placeholder_p): Fix comment.Eric Botcazou8-43/+98
* tree.h (contains_placeholder_p): Fix comment. (type_contains_placeholder_p): Adjust comment. * tree.c (contains_placeholder_p): Fix comment. (type_contains_placeholder_1): Do not recurse on pointed-to types and adjust comment. (type_contains_placeholder_p): Add comment. ada/ * gcc-interface/decl.c (finish_fat_pointer_type): New function. (gnat_to_gnu_entity) <E_Array_Type>: Use it to build the fat pointer type. <E_Access_Type>: Likewise. From-SVN: r166484
2010-11-09pdp11.c (pdp11_assemble_integer): Clean up fix for output of byte values.Paul Koning2-4/+7
* config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for output of byte values. From-SVN: r166483
2010-11-09re PR middle-end/46360 (ICE in release_defs, at tree-ssanames.c:313)Jakub Jelinek4-3/+29
PR middle-end/46360 * tree-ssa-propagate.c (update_call_from_tree): Fix for use not in SSA mode. * gcc.c-torture/compile/pr46360.c: New test. From-SVN: r166482
2010-11-09re PR c++/45894 ([C++0x] ICE: segmentation fault with -Wall)Jakub Jelinek4-1/+40
PR c++/45894 * tree.c (lvalue_kind): Don't crash if ref has NULL type. * g++.dg/warn/Wsequence-point-2.C: New test. From-SVN: r166481
2010-11-09re PR fortran/46313 ([OOP] class container naming collisions)Janus Weil15-101/+191
2010-11-09 Janus Weil <janus@gcc.gnu.org> PR fortran/46313 * gfortran.h (gfc_add_data_component,gfc_add_vptr_component, gfc_add_hash_component,gfc_add_size_component, gfc_add_def_init_component): New macros. * class.c (gfc_add_component_ref): Renamed data component. (get_unique_type_string): New function. (gfc_build_class_symbol): Use 'get_unique_type_string' to construct uniques names for the class containers. Rename components. (gfc_find_derived_vtab): Use 'get_unique_type_string' to construct uniques names for the vtab symbols. Rename components. * decl.c (attr_decl1): Renamed class container components. * iresolve.c (gfc_resolve_extends_type_of): Ditto. * match.c (select_type_set_tmp): Renamed temporaries. * module.c (read_module): Renamed vtab and vtype symbols. * resolve.c (resolve_structure_cons,resolve_typebound_function, resolve_typebound_subroutine,resolve_deallocate_expr, resolve_select_type,resolve_fl_derived): Renamed class container and vtab components. * trans-array.c (structure_alloc_comps): Ditto. * trans-decl.c (gfc_trans_deferred_vars): Ditto. * trans-expr.c (gfc_conv_derived_to_class,gfc_conv_structure, gfc_trans_class_init_assign,gfc_trans_class_assign): Ditto. * trans-intrinsic.c (gfc_conv_intrinsic_sizeof, gfc_conv_intrinsic_storage_size,gfc_conv_allocated,gfc_conv_associated, gfc_conv_same_type_as): Ditto. * trans-stmt.c (gfc_trans_allocate): Ditto. 2010-11-09 Janus Weil <janus@gcc.gnu.org> PR fortran/46313 * gfortran.dg/class_29.f03: New. From-SVN: r166480
2010-11-09re PR middle-end/46221 (huge number of c++ testsuite failures, libstdc++.so ↵Richard Guenther5-2/+83
alias missing) 2010-11-09 Richard Guenther <rguenther@suse.de> PR middle-end/46221 * varasm.c (compute_visible_aliases): New function. (remove_unreachable_alias_pairs): Aliases make a target available even though we reclaimed the cgraph node. (finish_aliases_1): Likewise. * Makefile.in (varasm.o): Add pointer-set.h dependency. * gcc.target/i386/alias-1.c: New testcase. From-SVN: r166479
2010-11-09inclhack.def (irix_pthread_init): New fix.Rainer Orth4-5/+79
* inclhack.def (irix_pthread_init): New fix. * fixincl.x: Regenerate. * tests/base/pthread.h [IRIX_PTHREAD_INIT_CHECK]: New test. From-SVN: r166478
2010-11-09re PR libstdc++/46385 (FAIL: 20_util/weak_ptr/comparison/cmp_neg.cc)Paolo Carlini2-1/+7
2010-11-09 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/46385 * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust dg-error line number. From-SVN: r166477
2010-11-09jvmti.exp (gcj_jvmti_compile_cxx_to_o): Add -pthread on alpha*-dec-osf*.Rainer Orth3-0/+15
* testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_compile_cxx_to_o): Add -pthread on alpha*-dec-osf*. * testsuite/libjava.jvmti/jvmti-interp.exp (gcj_jni_compile_c_to_so): Likewise. From-SVN: r166476
2010-11-09* config/mn10300/mn10300-modes.def: New file.Nick Clifton2-3/+29
From-SVN: r166475
2010-11-09Fix formatting issuesEric Botcazou1-30/+26
From-SVN: r166474
2010-11-09gengtype.c (get_output_file_name): Declaration moved to gengtype.h.Basile Starynkevitch5-137/+289
2010-11-09 Basile Starynkevitch <basile@starynkevitch.net> Jeremie Salvucci <jeremie.salvucci@free.fr> * gengtype.c (get_output_file_name): Declaration moved to gengtype.h. (plugin_files, get_file_basename, get_file_realbasename) (get_file_langdir, error_at_line, gt_files, this_file) (system_h_file, read_input_list, create_field_all) (get_file_srcdir_relative_path, get_file_basename) (get_file_langdir, get_file_gtfilename) (get_output_file_with_visibility, get_output_file_name) (struct flist, put_mangled_filename, walk_type) (put_mangled_filename, finish_root_table, write_roots): Use input_file-s. (lang_dir_names, num_lang_dirs): Remove static. (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h. (main): Use input_file-s. * gengtype.h: (struct input_file_st, input_file): New type. (struct fileloc): Use it. (gt_files, num_gt_files, this_file, system_h_file) (input_file_by_name, get_file_srcdir_relative_path): Use input_file. (get_input_file_name): New function. (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and use input_file. (lang_dir_names, num_lang_dirs, get_output_file_with_visibility) (get_output_file_name): Ditto. * gengtype-lex.l (yybegin): Use input_file. * gengtype-parse.c (parse_error): Use input_file. Co-Authored-By: Jeremie Salvucci <jeremie.salvucci@free.fr> From-SVN: r166473
2010-11-09fix changelog errorXinliang David Li3-6/+3
From-SVN: r166472
2010-11-08re PR c++/46382 (constexpr vs. static_assert in constexpr ctors)Jason Merrill6-8/+67
PR c++/46382 * semantics.c (check_constexpr_ctor_body): New fn. * parser.c (cp_parser_ctor_initializer_opt_and_function_body): Call it. * cp-tree.h: Declare it. From-SVN: r166471