aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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
2010-11-08re PR c++/46335 ([C++0X] [4.6 Regression] ICE: in gimple_add_tmp_var, at ↵Jason Merrill4-3/+21
gimplify.c:701) PR c++/46335 * tree.c (bot_manip): Check TREE_SIDE_EFFECTS as well. From-SVN: r166470
2010-11-09Fix PR/46316Xinliang David Li6-4/+56
From-SVN: r166469
2010-11-08* config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.Paul Koning2-9/+65
From-SVN: r166468
2010-11-08* config/pdp11/pdp11.md (negsi2): Fix wrong code.Paul Koning2-2/+5
From-SVN: r166467
2010-11-08pdp11.c (pdp11_assemble_integer): Mask byte values to 8 bits.Paul Koning2-4/+10
* config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values to 8 bits. From-SVN: r166466
2010-11-09Daily bump.GCC Administrator1-1/+1
From-SVN: r166465
2010-11-09re PR fortran/43899 (Wrong unused-variable warning with NAMELISTs)Jerry DeLisle2-2/+9
2010-11-08 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/43899 * trans-decl.c (generate_local_decl): Do not generate unused warning for variables in namelists. From-SVN: r166461
2010-11-08unique_ptr.h: Move misplaced static_assert and use tuple's constexpr ↵Jonathan Wakely3-10/+130
constructor in constexpr... 2010-11-08 Jonathan Wakely <jwakely.gcc@gmail.com> * include/bits/unique_ptr.h: Move misplaced static_assert and use tuple's constexpr constructor in constexpr constructors. * testsuite/20_util/unique_ptr/cons/ptr_deleter.cc: New. * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: New. From-SVN: r166460
2010-11-08user.cfg.in: Adjust scanned includes.Benjamin Kosnik3-182/+189
2010-11-08 Benjamin Kosnik <bkoz@redhat.com> * doc/doxygen/user.cfg.in: Adjust scanned includes. * include/std/forward_list: Make doxygen file markup unambiguous. From-SVN: r166459
2010-11-08re PR fortran/46344 ([OOP] ICE with allocatable CLASS components)Janus Weil4-2/+34
2010-11-08 Janus Weil <janus@gcc.gnu.org> PR fortran/46344 * decl.c (build_struct): Build vtab immediately if derived type has already been declared. 2010-11-08 Janus Weil <janus@gcc.gnu.org> PR fortran/46344 * gfortran.dg/class_28.f03: Extended. From-SVN: r166458
2010-11-08In gcc/objc/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com>Nicola Pero18-25/+902
In gcc/objc/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> * objc-act.c (objc_add_dynamic_declaration_for_property): Do not search for the @property declation only in the current context, but also in inherited properties. Do not mark the original PROPERTY_DECL in the @interface or @protocol with PROPERTY_DYNAMIC. (check_methods): To check if a method is associated with a @dynamic property, search for the property in IMPL_PROPERTY_DECL. (check_accessible_methods): Same change. * objc-act.h: Updated comment. In gcc/testsuite/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/property/dynamic-4.m: New. * objc.dg/property/dynamic-5.m: New. * objc.dg/property/dynamic-6.m: New. * obj-c++.dg/property/dynamic-4.mm: New. * obj-c++.dg/property/dynamic-5.mm: New. * obj-c++.dg/property/dynamic-6.mm: New. 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/property/dotsyntax-13.m: New. * objc.dg/property/dotsyntax-14.m: New. * objc.dg/property/dotsyntax-15.m: New. * objc.dg/property/synthesize-7.m: New. * obj-c++.dg/property/dotsyntax-13.mm: New. * obj-c++.dg/property/dotsyntax-14.mm: New. * obj-c++.dg/property/dotsyntax-15.mm: New. * obj-c++.dg/property/synthesize-7.mm: New. From-SVN: r166457
2010-11-08In gcc/objc/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com>Nicola Pero11-25/+438
In gcc/objc/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> * objc-act.c (objc_add_synthesize_declaration_for_property): Iterate over IMPL_PROPERTY_DECL, not CLASS_PROPERTY_DECL, when checking for an existing @synthesize or @dynamic declaration. Search for an inherited @property declaration if none is found in the local interface. If the required instance variable does not exist, return instead of trying to continue to prevent a compiler crash later. Check that the instance variable is not already being used by another @synthesize. (objc_add_dynamic_declaration_for_property): Iterate over IMPL_PROPERTY_DECL, not CLASS_PROPERTY_DECL, when checking for an existing @synthesize or @dynamic declaration. (objc_synthesize_getter): Search for the getter declaration in protocols and superclasses as well. (objc_synthesize_setter): Search for the setter declaration in protocols and superclasses as well. In gcc/testsuite/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/property/synthesize-3.m: New. * objc.dg/property/synthesize-4.m: New. * objc.dg/property/synthesize-5.m: New. * objc.dg/property/synthesize-6.m: New. * obj-c++.dg/property/synthesize-3.mm: New. * obj-c++.dg/property/synthesize-4.mm: New. * obj-c++.dg/property/synthesize-5.mm: New. * obj-c++.dg/property/synthesize-6.mm: New. From-SVN: r166456