1. 07 Jul, 2008 22 commits
    • re PR fortran/36341 (MATMUL: Bounds check missing) · 9ad13e91
      2008-07-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR fortran/36341
      	PR fortran/34670
      	* m4/matmul.m4:  Add bounds checking.
      	* m4/matmull.m4:  Likewise.
      	* generated/matmul_c10.c: Regenerated.
      	* generated/matmul_c16.c: Regenerated.
      	* generated/matmul_c4.c: Regenerated.
      	* generated/matmul_c8.c: Regenerated.
      	* generated/matmul_i1.c: Regenerated.
      	* generated/matmul_i16.c: Regenerated.
      	* generated/matmul_i2.c: Regenerated.
      	* generated/matmul_i4.c: Regenerated.
      	* generated/matmul_i8.c: Regenerated.
      	* generated/matmul_l16.c: Regenerated.
      	* generated/matmul_l4.c: Regenerated.
      	* generated/matmul_l8.c: Regenerated.
      	* generated/matmul_r10.c: Regenerated.
      	* generated/matmul_r16.c: Regenerated.
      	* generated/matmul_r4.c: Regenerated.
      	* generated/matmul_r8.c: Regenerated.
      
      2008-07-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR fortran/36341
      	PR fortran/34670
      	* gfortran.dg/matmul_bounds_2.f90:  New test.
      	* gfortran.dg/matmul_bounds_3.f90:  New test.
      	* gfortran.dg/matmul_bounds_4.f90:  New test.
      	* gfortran.dg/matmul_bounds_5.f90:  New test.
      
      From-SVN: r137594
      Thomas Koenig committed
    • i386.c (is_va_list_char_pointer): New. · 8432ea85
      2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
      
      	* config/i386/i386.c (is_va_list_char_pointer): New.
      	(ix86_va_start): Replace compare with ms_va_list_type_node
      	by is_va_list_char_pointer.
      	(ix86_gimplify_va_arg): Likewise.
      
      From-SVN: r137593
      Kai Tietz committed
    • acinclude.m4 (LIBGFOR_CHECK_GTHR_DEFAULT): Fix configure cache variable name. · 10465436
      libgfortran/
      	* acinclude.m4 (LIBGFOR_CHECK_GTHR_DEFAULT): Fix configure cache
      	variable name.
      	* configure: Regenerate.
      
      From-SVN: r137592
      Ralf Wildenhues committed
    • cgraph.c (cgraph_edge_max_uid): New variable. · 9088c1cc
      2008-07-07  Martin Jambor  <mjambor@suse.cz>
      
      	* cgraph.c (cgraph_edge_max_uid): New variable.
      	(struct cgraph_edge_hook_list): New type.
      	(struct cgraph_node_hook_list): New type.
      	(struct cgraph_2edge_hook_list): New type.
      	(struct cgraph_2node_hook_list): New type.
      	(first_cgraph_edge_removal_hook): New variable.
      	(first_cgraph_node_removal_hook): New variable.
      	(first_cgraph_edge_duplicated_hook): New variable.
      	(first_cgraph_node_duplicated_hook): New variable.
      	(cgraph_add_edge_removal_hook): New function.
      	(cgraph_remove_edge_removal_hook): New function.
      	(cgraph_call_edge_removal_hooks):  New function.
      	(cgraph_add_node_removal_hook):  New function.
      	(cgraph_remove_node_removal_hook):  New function.
      	(cgraph_call_node_removal_hooks):  New function.
      	(cgraph_add_edge_duplication_hook):  New function.
      	(cgraph_remove_edge_duplication_hook):  New function.
      	(cgraph_call_edge_duplication_hooks):  New function.
      	(cgraph_add_node_duplication_hook):  New function.
      	(cgraph_remove_node_duplication_hook):  New function.
      	(cgraph_call_node_duplication_hooks):  New function.
      	(cgraph_create_edge): Assign to edge uid.
      	(cgraph_remove_edge): Call edge removal hooks.
      	(cgraph_node_remove_callees): Call edge removal hooks.
      	(cgraph_node_remove_callers): Call edge removal hooks.
      	(cgraph_remove_node): Call node removal hooks.
      	(cgraph_clone_edge): Call edge duplication hooks.
      	(cgraph_clone_node): Call node duplication hooks.
      
      	* cgraph.h (cgraph_edge): New field uid.
      	(cgraph_edge_hook): New type.
      	(cgraph_node_hook): New type.
      	(cgraph_2edge_hook): New type.
      	(cgraph_2node_hook): New type.
      
      From-SVN: r137591
      Martin Jambor committed
    • config.in: Regenerate. · c71618c6
      2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
      
      	* config.in: Regenerate.
      
      From-SVN: r137590
      Andreas Tobler committed
    • gcc.c (print_sysroot): New. · 3def1397
              * gcc.c (print_sysroot): New.
              (option_map, display_help, process_command): Handle the
              -print-sysroot option.
              (main): Print the sysroot if requested.
              * doc/invoke.texi (Debugging Options): Document -print-sysroot.
      
      From-SVN: r137584
      Vladimir Prus committed
    • re PR target/34780 (Bootstrapping libstdc++-v3 failed) · 40a420d5
      gcc/
      	PR target/34780
      	* unwind-pe.h (size_of_encoded_value): add attribute unused.
      
      From-SVN: r137582
      Ralf Wildenhues committed
    • safe-ctype.h: Add #include of ctype.h before redefining the ctype.h macros. · 622c36c9
              * safe-ctype.h: Add #include of ctype.h before redefining
              the ctype.h macros.
      
      From-SVN: r137580
      Joel Brobecker committed
    • _divtc3-compat.c: Moved to ... · dd7b73c0
      2008-07-07  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* config/i386/64/_divtc3-compat.c: Moved to ...
      	* config/i386/64/_divtc3.c: Here.
      
      	* config/i386/64/_multc3-compat.c: Moved to ...
      	* config/i386/64/_multc3.c: Here.
      
      	* config/i386/64/_powitf2-compat.c: Moved to ...
      	* config/i386/64/_powitf2.c: Here.
      
      	* config/i386/64/t-softfp-compat (libgcc2-tf-compats): Add
      	.c suffix instead of -compat.c.
      
      From-SVN: r137579
      H.J. Lu committed
    • function.c (assign_parm_remove_parallels): Check mode of entry_parm. · 85776d60
      	* function.c (assign_parm_remove_parallels): Check mode of
      	entry_parm.
      	(assign_parm_setup_block_p): Also check mode of entry_parm.
      
      From-SVN: r137575
      Daniel Jacobowitz committed
    • tree-ssa-structalias.h (set_used_smts): Remove. · bf87f41c
      2008-07-07  Richard Guenther  <rguenther@suse.de>
      
      	* tree-ssa-structalias.h (set_used_smts): Remove.
      	* tree-ssa-structalias.c (used_smts): Likewise.
      	(set_used_smts): Likewise.
      	* tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
      	call to set_used_smts.
      
      From-SVN: r137574
      Richard Guenther committed
    • tree-ssa-structalias.c (struct variable_info): Add is_full_var flag. · e5bae89b
      2008-07-07  Richard Guenther  <rguenther@suse.de>
      
      	* tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
      	(new_var_info): Set it to false.
      	(solution_set_add): Correctly handle pointers outside a var and
      	inside a field.
      	(type_safe): Treat variables with is_full_var properly.
      	(do_sd_constraint): Likewise.
      	(do_ds_constraint): Likewise.
      	(process_constraint): Remove zeroing offset for !use_field_sensitive.
      	(get_constraint_for_ptr_offset): New function.
      	(get_constraint_for_component_ref): For addresses at least include
      	the last field of the variable.  Handle is_full_vars properly.
      	(get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
      	(handle_ptr_arith): Remove.
      	(find_func_aliases): Simplify assignment handling.
      	(create_function_info_for): For parameter and result varinfos set
      	is_full_var flag.
      	(create_variable_info_for): Set is_full_var flag whenever we
      	just created a single varinfo for a decl.
      	(init_alias_vars): Initialize use_field_sensitive from
      	max-fields-for-field-sensitive parameter.
      
      	* gcc.dg/torture/pta-ptrarith-1.c: New testcase.
      	* gcc.dg/torture/pta-ptrarith-2.c: Likewise.
      	* gcc.dg/torture/ipa-pta-1.c: Likewise.
      
      From-SVN: r137573
      Richard Guenther committed
    • re PR middle-end/36726 (ICE in move_stmt_r, at tree-cfg.c:5699 with -fopenmp) · 77092cda
      	PR middle-end/36726
      	* f95-lang.c (poplevel): Don't ever add subblocks to
      	global_binding_level.
      
      	* gfortran.dg/gomp/pr36726.f90: New test.
      
      From-SVN: r137572
      Jakub Jelinek committed
    • re PR target/36713 (r137252 breaks -O2 optimization on x86_64-unknown-linux-gnu) · 115340c7
      2008-07-07  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/36713
      	* tree-flow-inline.h (is_call_used): New function.
      	* tree-nrv.c (dest_safe_for_nrv_p): Use it.
      	* tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
      	* tree-outof-ssa.c (create_temp): Set call-used flag if required.
      
      From-SVN: r137571
      Richard Guenther committed
    • * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets. · bd0e50ee
      From-SVN: r137558
      Mark Shinwell committed
    • config.gcc (m68k-*-linux*): Add with_arch. · 368b55f6
      	* config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
      	to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
      	tmake_file.
      	* config/m68k/t-linux: New.
      	* doc/install.texi: Document m68k-*-linux is now multilibbed by
      	default.
      
      From-SVN: r137557
      Nathan Sidwell committed
    • t-cf (MULTILIB_EXTRA_OPTS): Add no-mac. · b2aa7a64
      	* config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
      	* config/m68k/m68k-devices.def: Remove multilibs that only differ
      	by MAC/EMAC.
      
      From-SVN: r137556
      Nathan Sidwell committed
    • make-trie.h: New. · de777675
      libjava/
      	* gnu/gcj/convert/make-trie.h: New.
      	* gnu/gcj/convert/gen-from-JIS.c: Include it.
      	* gnu/gcj/convert/make-trie.c: Likewise.
      	Fix typos and compiler warnings, diagnose a missing argument.
      	* Makefile.am (gen_from_JIS_SOURCES): Add gnu/gcj/convert/make-trie.h.
      	* Makefile.in: Regenerate.
      
      From-SVN: r137553
      Ralf Wildenhues committed
    • gcc.c (execute): Fix -Wc++-compat warning. · 63ab5b8c
      	* gcc.c (execute): Fix -Wc++-compat warning.
      
      From-SVN: r137548
      Kaveh R. Ghazi committed
    • re PR target/36720 (ia64_split_tmode_move doesn't work on little endian) · 9eb578c8
      2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR target/36720
      	* config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
      	constant for little endian.
      
      From-SVN: r137547
      H.J. Lu committed
    • Daily bump. · 844c137e
      From-SVN: r137545
      GCC Administrator committed
  2. 06 Jul, 2008 9 commits
    • mips.h (TARGET_CPU_CPP_BUILTINS): Check mips_base_mips16 instead of TARGET_MIPS16. · 60730ade
      gcc/
      	* config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
      	mips_base_mips16 instead of TARGET_MIPS16.
      	(mips_base_mips16): Declare.
      	* config/mips/mips.c (mips_base_mips16): Make global.
      	(was_mips16_p): Remove GTY marker.
      	(was_mips16_pch_p): New variable.
      	(mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
      	(mips_override_options): Force to non-MIPS16 mode initially.
      	Do not complain about MIPS16 PIC incompatibilities here.
      	Only allow -mgpopt if -mexplicit-relocs is in force for
      	non-MIPS16 code.
      
      gcc/testsuite/
      	* gcc.target/mips/gcc-have-sync-compare-and-swap-1.c: Expect the
      	macros to be defined for MIPS16 too.
      	* gcc.target/mips/gcc-have-sync-compare-and-swap-2.c: Likewise.
      	* gcc.target/mips/gcc-have-sync-compare-and-swap-3.c: New test.
      	* gcc.target/mips/gcc-have-sync-compare-and-swap-4.c: Likewise.
      
      From-SVN: r137539
      Richard Sandiford committed
    • configure.ac: Check for caddr_t, define to char * if not defined. · bba09b5a
      2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
      
      	* configure.ac: Check for caddr_t, define to char * if not defined.
      	* configure: Regenerate.
      	* ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
      	(mmap_gt_pch_use_address): Likewise.
      	* config/host-solaris.c (sol_gt_pch_use_address): Likewise.
      
      From-SVN: r137538
      Andreas Tobler committed
    • tree-ssa-structalias.c (struct variable_info): Remove has_union. · ee7d4b57
      2008-07-06  Richard Guenther  <rguenther@suse.de>
      
      	* tree-ssa-structalias.c (struct variable_info): Remove has_union.
      	(new_var_info): Deal with it.
      	(solution_set_add): Likewise.
      	(bitpos_of_field): Make signed, fix.
      	(struct fieldoff): Remove type and decl fields.  Make size field
      	unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
      	flags.
      	(fieldoff_compare): Deal with it.
      	(push_fields_onto_fieldstack): Remove has_union argument, glob
      	adjacent non-pointer fields together.
      	(create_function_info_for): Do not set has_union.
      	(create_variable_info_for): Simplify.
      
      	* gcc.dg/tree-ssa/pta-callused.c: Adjust testcase.
      
      From-SVN: r137530
      Richard Guenther committed
    • system_error (is_error_code_enum): Use identifier _Tp instead of _T to avoid… · c9faf465
      system_error (is_error_code_enum): Use identifier _Tp instead of _T to avoid conflict with system macro on Darwin.
      
      
      	* include/std/system_error (is_error_code_enum): Use identifier
      	_Tp instead of _T to avoid conflict with system macro on Darwin.
      	(is_error_condition_enum): Likewise.
      
      From-SVN: r137529
      Roger Sayle committed
    • config.gcc (extra_headers): Add cross-stdarg.h for target x86_64-*-* and i?86-*-*. · 35cbb299
      2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
      
      	* config.gcc (extra_headers): Add cross-stdarg.h for target
      	x86_64-*-* and i?86-*-*.
      	* config/i386/cross-stdarg.h: New.
      	* builtins.c (std_fn_abi_va_list): New.
      	(std_canonical_va_list_type): New.
      	(stabilize_va_list): Replace va_list_type_node use by
      	mtarget.canonical_va_list_type.
      	(gimplify_va_arg_expr): Likewise.
      	(expand_builtin_va_copy): Replace va_list_type_node use by
      	mtarget.fn_abi_va_list.
      	* tree-sra.c (is_va_list_type): New helper.
      	(decl_can_be_decomposed_p): Replace
      	va_list_type_node use by is_va_list_type.
      	* tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
      	* tree-stdarg.c (execute_optimize_stdarg): Likewise.
      	* c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
      	* config/i386/i386-protos.h (ix86_get_valist_type): New.
      	(ix86_enum_va_list): New.
      	* config/i386/i386.c (sysv_va_list_type_node): New.
      	(ms_va_list_type_node): New.
      	(ix86_function_type_abi): Remove sorry.
      	(ix86_build_builtin_va_list_abi): New.
      	(ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
      	for 64-bit targets.
      	(ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
      	(ix86_init_builtins_va_builtins_abi): New.
      	(ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
      	for 64-bit targets.
      	(ix86_handle_abi_attribute): New.
      	(attribute_spec): Add sysv_abi and ms_abi.
      	(ix86_fn_abi_va_list): New.
      	(ix86_canonical_va_list_type): New.
      	(ix86_enum_va_list): New.
      	(TARGET_FN_ABI_VA_LIST): New.
      	(TARGET_CANONICAL_VA_LIST_TYPE): New.
      	* config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
      	* doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
      	(TARGET_CANONICAL_VA_LIST_TYPE): New.
      	(TARGET_ENUM_VA_LIST): New.
      	* expr.h (std_fn_abi_va_list): New.
      	(std_canonical_va_list_type): New.
      	* target-def.h (TARGET_FN_ABI_VA_LIST): New.
      	(TARGET_CANONICAL_VA_LIST_TYPE): New.
      	(TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
      	TARGET_CANONICAL_VA_LIST_TYPE.
      	* target.h (struct gcc_target): Add fn_abi_va_list hook
      	and canonical_va_list_type hook.
      
      From-SVN: r137525
      Kai Tietz committed
    • callabi.h: New. · b6b02c55
      2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
      
      	* gcc.dg/callabi/callabi.h: New.
      	* gcc.dg/callabi/vaarg-1.c: New.
      	* gcc.dg/callabi/vaarg-2.c: New.
      	* gcc.dg/callabi/vaarg-3.c: New.
      	* gcc.dg/callabi/func-1.c: New.
      
      From-SVN: r137524
      Kai Tietz committed
    • jcf-io.c: Don't include fnmatch.h. · dcef3dac
      	* jcf-io.c: Don't include fnmatch.h.  Don't use JCF_USE_SCANDIR.
      	(compare_path): Remove.
      	(java_or_class_file): Likewise.
      	(memoized_dirlist_entry): Likewise.
      	(memoized_dirlist_hash): Likewise.
      	(memoized_dirlist_lookup_eq): Likewise.
      	(memoized_dirlists): Likewise.
      	(caching_stat): Likewise.
      	(find_class): Use stat.
      	* jcf.h (JCF_USE_SCANDIR): Remove.
      
      From-SVN: r137523
      Tom Tromey committed
    • Makefile.in (install-info): New stub target. · a0ed5099
      libobjc/
      	* Makefile.in (install-info): New stub target.
      
      From-SVN: r137522
      Ralf Wildenhues committed
    • Daily bump. · 3954ea9e
      From-SVN: r137515
      GCC Administrator committed
  3. 05 Jul, 2008 7 commits
  4. 04 Jul, 2008 2 commits
    • re PR target/36684 (spill failure for class 'R0_REGS' on sh4 with -fPIC -O2) · 0dcd6f42
      	PR target/36684
      	* config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns
      	for PIC.
      
      From-SVN: r137487
      Kaz Kojima committed
    • ratio: New, per N2661. · 4acedca1
      2008-07-04  Chris Fairles  <chris.fairles@gmail.com>
      
      	* include/std/ratio: New, per N2661.
      	* include/Makefile.am: Update.
      	* include/Makefile.in: Regenerate.
      	* testsuite/20_util/ratio/cons/cons1.cc: New.
      	* testsuite/20_util/ratio/cons/cons_overflow.cc: Likewise.
      	* testsuite/20_util/ratio/operations/ops1.cc: Likewise.
      	* testsuite/20_util/ratio/operations/ops2.cc: Likewise.
      	* testsuite/20_util/ratio/operations/ops3.cc: Likewise.
      	* testsuite/20_util/ratio/operations/ops_overflow.cc: Likewise.
      	* testsuite/20_util/ratio/comparisons/comp1.cc: Likewise.
      
      From-SVN: r137482
      Chris Fairles committed