OSDN Git Service

pf3gnuchains/gcc-fork.git
13 years agoDaily bump.
gccadmin [Tue, 12 Oct 2010 00:18:57 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165347 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
danglin [Mon, 11 Oct 2010 22:40:22 +0000 (22:40 +0000)]
* config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
actual_oldval.  Use __builtin_expect.
(SUBWORD_VAL_CAS): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165339 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Jonathan Wakely <jwakely.gcc@gmail.com>
paolo [Mon, 11 Oct 2010 22:32:01 +0000 (22:32 +0000)]
2010-10-11  Jonathan Wakely  <jwakely.gcc@gmail.com>

* testsuite/23_containers/bitset/cons/2.cc: Tweak.

2010-10-11  Paolo Carlini  <paolo.carlini@oracle.com>

* include/std/bitset (bitset<>::bitset(const _CharT*,
typename std::basic_string<>::size_type, _CharT, _CharT)):
Implement new proposed resolution for DR 1325.
* include/debug/bitset: Likewise.
* include/profile/bitset: Likewise.
* testsuite/23_containers/bitset/cons/dr1325-1.cc: New.
* testsuite/23_containers/bitset/cons/dr1325-2.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165338 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * recog.c (nonmemory_operand): Call immediate_operand for
froydnj [Mon, 11 Oct 2010 21:50:58 +0000 (21:50 +0000)]
* recog.c (nonmemory_operand): Call immediate_operand for
CONSTANT_P operands.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165334 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Mon, 11 Oct 2010 21:28:17 +0000 (21:28 +0000)]
2010-10-11  Benjamin Kosnik  <bkoz@redhat.com>

* doc/xml/api.xml: Add link to 4.5 generated docs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165332 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/i386/i386.md (movmem<mode>): Macroize expander from
uros [Mon, 11 Oct 2010 20:32:15 +0000 (20:32 +0000)]
* config/i386/i386.md (movmem<mode>): Macroize expander from
movmem{si,di} using SWI48 mode iterator.
(*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
*strmovsi_rex_1 using P mode iterator.
(*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
(*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
(*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
(*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
(setmem<mode>): Macroize expander from setmem{si,di} using
SWI48 mode iterator.
(*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
*strsetsi_rex_1 using P mode iterator.
(*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
(*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
(*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
(*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
(*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
(*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
(strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
mode iterator.
(*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
*strlenqi_rex_1 using P mode iterator.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165331 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Martin Jambor <mjambor@suse.cz>
jamborm [Mon, 11 Oct 2010 20:23:04 +0000 (20:23 +0000)]
2010-10-11  Martin Jambor  <mjambor@suse.cz>

PR c++/45562
* cp/cp-tree.h (current_class_ref): Check that cp_function_chain is
non-NULL.
* cp/call.c (build_cxx_call): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165330 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR bootstrap/45445
bernds [Mon, 11 Oct 2010 19:39:37 +0000 (19:39 +0000)]
PR bootstrap/45445
* ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
static functions.
(mark_ref_live, mark_ref_dead): Use them.
(make_pseudo_conflict): New arg ORIG_DREG.  All callers changed.
Save the original reg, and use the new functions.
(check_and_make_def_use_conflict): New arg ORIG_DREG.  All callers
changed.
(check_and_make_def_conflict): Save the original reg.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165329 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * dyn_load.c: Fix typo.
ro [Mon, 11 Oct 2010 19:06:24 +0000 (19:06 +0000)]
* dyn_load.c: Fix typo.
* pthread_support.c (GC_get_thread_stack_base) [DEBUG_THREADS]:
Use GC_printf0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165328 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Martin Jambor <mjambor@suse.cz>
jamborm [Mon, 11 Oct 2010 18:45:23 +0000 (18:45 +0000)]
2010-10-11  Martin Jambor  <mjambor@suse.cz>

PR middle-end/45699
* gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
thunks.

* testsuite/g++.dg/torture/pr45699.C: New test.
* testsuite/g++.dg/otr-fold-1.C: Adjusted.
* testsuite/g++.dg/otr-fold-1.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165327 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoIn libobjc/:
nicola [Mon, 11 Oct 2010 18:17:19 +0000 (18:17 +0000)]
In libobjc/:
2010-10-11  Nicola Pero  <nicola.pero@meta-innovation.com>

        * class.c (objc_getClassList): New.
        (objc_getRequiredClass): New.
        (objc_getMetaClass): New.
        (objc_lookupClass): New.
        (objc_getClass): New.
        (__objc_get_unknown_class_handler): New.
        (objc_setGetUnknownClassHandler): New.
        (objc_get_class): Use __objc_get_unknown_class_handler.
        (objc_lookup_class): Call objc_getClass.
        * objc/objc-api.h: Updated comment and copyright notice.
        * objc/runtime.h: Updated comments.
        (objc_getClass): New.
        (objc_lookupClass): New.
        (objc_getMetaClass): New.
        (objc_getRequiredClass): New.
        (objc_getClassList): New.
        (objc_setGetUnknownClassHandler): New.
        (objc_get_unknown_class_handler): New.
        * objc-private/runtime.h: Use __objc_private_runtime_INCLUDE_GNU
        instead of __objc_runtime_INCLUDE_GNU as include guard.
        * objc-private/error.h (_objc_abort): Mark as noreturn.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165326 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoNew contrib/test_recheck script to rerun unsuccessful tests.
rwild [Mon, 11 Oct 2010 18:04:01 +0000 (18:04 +0000)]
New contrib/test_recheck script to rerun unsuccessful tests.

contrib/:
* test_recheck: New script.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165324 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoFix quoting for RUNTESTFLAGS in gcc/.
rwild [Mon, 11 Oct 2010 18:02:41 +0000 (18:02 +0000)]
Fix quoting for RUNTESTFLAGS in gcc/.

gcc/:
* Makefile.in ($(lang_checks_parallel))
($(lang_checks_parallelized)): Use single quotes for
$(RUNTESTFLAGS), to allow passing quoted content.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165323 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoFix PR bootstrap/35855: awk character classes.
rwild [Mon, 11 Oct 2010 17:58:53 +0000 (17:58 +0000)]
Fix PR bootstrap/35855: awk character classes.

gcc/:
PR bootstrap/35855
* opt-functions.awk (BEGIN): New section.
(lower, upper, digit, alnum): New variables.
(static_var, opt_sanitized_name): Use alnum instead of character
classes, for non-C locale.
* optc-gen.awk: Likewise.
* opth-gen.awk: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165322 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * target.def (preferred_reload_class): New hook.
aesok [Mon, 11 Oct 2010 17:41:24 +0000 (17:41 +0000)]
* target.def (preferred_reload_class): New hook.
* doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
* doc/tm.texi: Regenerate.
* targhooks.c (default_preferred_reload_class): New function.
* targhooks.h (default_preferred_reload_class): Declare.
* reload.c (find_dummy_reload): Change preferred_class variable type
from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
target hook.
(find_reloads): Change goal_alternative array type from int to
reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
(push_reload, find_reloads_address_part): Use
TARGET_PREFERRED_RELOAD_CLASS target hook.
* reload1.c (emit_input_reload_insns): Ditto.
* ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
hook. Change rclass argument and secondary_class variable types from
'enum reg_class' to reg_class_t.

* config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
* config/i386/i386-protos (ix86_preferred_reload_class): Remove.
* config/i386/i386.c (ix86_preferred_reload_class): Make static.
Change regclass argument and result types from enum reg_class to
reg_class_t.
(TARGET_PREFERRED_RELOAD_CLASS): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165321 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
ebotcazou [Mon, 11 Oct 2010 17:15:41 +0000 (17:15 +0000)]
* simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
in masking operations.
(simplify_const_unary_operation): Likewise.
(simplify_binary_operation_1): Likewise.
(simplify_const_binary_operation): Likewise.
(simplify_const_relational_operation): Likewise.
(simplify_ternary_operation): Likewise.
(simplify_immed_subreg): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165320 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR middle-end/45862
danglin [Mon, 11 Oct 2010 16:52:12 +0000 (16:52 +0000)]
PR middle-end/45862
* doc/tm.texi.in (SUPPORTS_WEAK): Update.
(TARGET_SUPPORTS_WEAK): New.
* doc/tm.texi: Regenerate.
* defaults.h (SUPPORTS_WEAK): Update comment.
(TARGET_SUPPORTS_WEAK): New.
* dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
* varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
SUPPORTS_WEAK.
(merge_weak, declare_weak, do_assemble_alias, supports_one_only,
make_decl_one_only): Likewise.
* config/pa/som.h (SUPPORTS_WEAK): Rename defines to
TARGET_SUPPORTS_WEAK.
(SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
instead of SUPPORTS_WEAK.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165319 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
ro [Mon, 11 Oct 2010 16:43:56 +0000 (16:43 +0000)]
* config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165318 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * decl.c (java_init_decl_processing): Use build_function_type_list
froydnj [Mon, 11 Oct 2010 16:23:52 +0000 (16:23 +0000)]
* decl.c (java_init_decl_processing): Use build_function_type_list
instead of build_function_type.
* jcf-parse.c (java_emit_static_constructor): Likewise.
* builtins.c (initialize_builtins): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165317 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Robert Dewar <dewar@adacore.com>
charlet [Mon, 11 Oct 2010 15:47:23 +0000 (15:47 +0000)]
2010-10-11  Robert Dewar  <dewar@adacore.com>

* debug.adb: Remove d.A flag to delay address clause (not needed any
more). Add d.A flag to enable tree read/write of aspect spec hash table
* sem_ch13.adb (Analyze_Aspect_Specifications): Properly delay address
clause.
(Rep_Item_Too_Late): No need for special processing for delayed rep
items (and it caused difficulties in the address case).
* tree_gen.adb: Only write aspect spec hash table if -gnatd.A is set
* tree_in.adb: Only write aspect spec hash table if -gnatd.A is set

2010-10-11  Pat Rogers  <rogers@adacore.com>

* gnat_ugn.texi: Minor editing.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165316 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * gcc.c-torture/compile/pr44197.c: Require visibility support.
nickc [Mon, 11 Oct 2010 15:15:09 +0000 (15:15 +0000)]
    * gcc.c-torture/compile/pr44197.c: Require visibility support.
        Allow for a user label prefix.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165315 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agogcc/
froydnj [Mon, 11 Oct 2010 15:08:28 +0000 (15:08 +0000)]
gcc/
* vec.h (VEC_qsort): Define.
* dbxout.c (output_used_types): Use it.
* df-scan.c (df_sort_and_compress_refs): Likewise.
(df_sort_and_compress_mws): Likewise.
* genautomata.c (uniq_sort_alt_states): Likewise.
(evaluate_equiv_classes): Likewise.
(output_trans_table): Likewise.
(output_state): Likewise.
* gimplify.c (compare_case_labels): Likewise.
* graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
* ipa.c (build_cdtor_fns): Likewise.
* lto.c (lto_wpa_write_files): Likewise.
* sel-sched.c (fill_vec_av_set): Likewise.
* tree-predcom.c (determine_roots_comp): Likewise.
* tree-sra.c (sort_and_spliace_var_accesses): Likewise.
(splice_param_accesses): Likewise.
* tree-ssa-live.c (dump_enumerated_decls): Likewise.
* tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
(reassociate_bb): Likewise.
* tree-ssa-sccvn.c (sort_scc): Likewise.
* tree-ssa-structalias.c (sort_fieldstack): Likewise.

gcc/ada/
* gcc-interface/utils2.c (gnat_build_constructor): Use VEC_qsort.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165314 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
ian [Mon, 11 Oct 2010 14:56:39 +0000 (14:56 +0000)]
* tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
* emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
TREE_THIS_NOTRAP when appropriate.
(get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new
VAR_DECL.
* gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
newly created MEM_REF.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165313 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
hariharans [Mon, 11 Oct 2010 14:52:16 +0000 (14:52 +0000)]
* config/picochip/picochip-protos.h (picochip_function_arg): Delete.
(picochip_incoming_function_arg): Delete.
(picochip_arg_advance): Delete.
* config/picochip/picochip.h (FUNCTION_ARG): Delete.
(FUNCTION_INCOMING_ARG): Delete.
(FUNCTION_ARG_ADVANCE): Delete.
* config/picochip/picochip.c (picochip_function_arg): Take a
const_tree and a bool.
(picochip_incoming_function_arg): Likewise.
(picochip_arg_advance): Likewise.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
(TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165312 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoAdd missing ChangeLog.
ak [Mon, 11 Oct 2010 14:15:12 +0000 (14:15 +0000)]
Add missing ChangeLog.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165311 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Kai Tietz <kai.tietz@onevision.com>
ktietz [Mon, 11 Oct 2010 14:14:54 +0000 (14:14 +0000)]
2010-10-11  Kai Tietz  <kai.tietz@onevision.com>

        * lto-plugin.c (dump_symtab): Correct printf argument type.
        (finish_conflict_resolution): Initialize resolution.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165310 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoFix typo in earlier checksum change
ak [Mon, 11 Oct 2010 14:14:22 +0000 (14:14 +0000)]
Fix typo in earlier checksum change

I'm checking in a fix as obvious for this typo in the earlier checksum
change.

gcc/objcp

2010-10-11  Andi Kleen  <ak@linux.intel.com>

* Make-lang.in (cc1objplus-checksum.c): Use correct temporary
name.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165309 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR middle-end/45955
danglin [Mon, 11 Oct 2010 14:02:03 +0000 (14:02 +0000)]
PR middle-end/45955
* ipa.c (build_cdtor): Delete endless loop.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165308 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * pt.c (tsubst_default_argument): Handle DEFAULT_ARG.
jason [Mon, 11 Oct 2010 13:25:50 +0000 (13:25 +0000)]
* pt.c (tsubst_default_argument): Handle DEFAULT_ARG.
(tsubst_default_arguments): Only do this once for cloned fns.
(tsubst): Use typedef_variant_p.  Handle LANG_TYPE.  Don't
handle expressions.
(tsubst_expr): Avoid calling tsubst_expr for non-expressions.
(tsubst_copy_and_build): Likewise.
(tsubst_initializer_list): Likewise.
(tsubst_copy): Change default to gcc_unreachable.  Handle
OVERLOAD and PTRMEM_CST.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165307 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR lto/45959
jason [Mon, 11 Oct 2010 13:25:37 +0000 (13:25 +0000)]
PR lto/45959
PR lto/45960
* pt.c (tsubst_copy) [INTEGER_CST]: Instantiate the type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165306 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoBuild compiler checksum from object files v2
ak [Mon, 11 Oct 2010 13:06:50 +0000 (13:06 +0000)]
Build compiler checksum from object files v2

gcc/

2010-10-07  Andi Kleen  <ak@linux.intel.com>

* Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
checksum-options.
(checksum-options): Add.
(cc1-dummy): Remove.
(cc1-checksum): Change to run checksum over object files
and options only.
* dummy-checksum.c: Remove.
* genchecksum.c: Update copyright.
(usage): Allow multiple arguments.
(BLOCKSIZE): Add.
(dosum): Change for incremental checksum. Remove C output.
(main): Iterate over all argument files. Add C output.

gcc/cp

2010-10-07  Andi Kleen  <ak@linux.intel.com>

* Make-lang.in (c++_OBJS): Remove dummy-checksum.o.
(cc1plus-dummy): Remove.
(cc1plus-checksum): Change to run checksum over object files
        and options only.

gcc/objc

2010-10-07  Andi Kleen  <ak@linux.intel.com>

* Make-lang.in (cc1obj-dummy): Remove.
(cc1obj-checksum): Change to run checksum over object files
        and options only.

gcc/objcp

2010-10-07  Andi Kleen  <ak@linux.intel.com>

* Make-lang.in (cc1objplus-dummy): Remove.
(cc1objplus-checksum): Change to run checksum over object files
        and options only.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165305 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * params.c (set_param_value_internal): New.
jsm28 [Mon, 11 Oct 2010 12:28:40 +0000 (12:28 +0000)]
* params.c (set_param_value_internal): New.
(set_param_value): Use set_param_value_internal.
(maybe_set_param_value, set_default_param_value): New.
* params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
(maybe_set_param_value, set_default_param_value): Declare.
* config/arm/arm.c (arm_option_override): Use
maybe_set_param_value.
* config/i386/i386.c (ix86_option_override_internal): Use
maybe_set_param_value.
* config/ia64/ia64.c (ia64_option_default_params,
TARGET_OPTION_DEFAULT_PARAMS): New.
(ia64_option_optimization): Move some code to
ia64_option_default_params.
* config/picochip/picochip.c (picochip_option_override): Use
maybe_set_param_value.
* config/rs6000/rs6000.c (rs6000_option_default_params,
TARGET_OPTION_DEFAULT_PARAMS): New.
(rs6000_option_override_internal): Use maybe_set_param_value.
(rs6000_option_optimization): Move some code to
rs6000_option_default_params.
* config/s390/s390.c (s390_option_override): Use
maybe_set_param_value.
* config/sh/sh.c (sh_option_default_params,
TARGET_OPTION_DEFAULT_PARAMS): New.
(sh_option_optimization): Move some code to
sh_option_default_params.
* config/sparc/sparc.c (sparc_option_override): Use
maybe_set_param_value.
* config/spu/spu.c (spu_option_default_params,
TARGET_OPTION_DEFAULT_PARAMS): New.
(spu_option_optimization): Move some code to
spu_option_default_params.
(spu_option_override): Use maybe_set_param_value.
* doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
* doc/tm.texi: Regenerate.
* ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
* opts.c (init_options_once): Use PARAM_VALUE not direct access to
compiler_params.
(default_options_optimization): Use maybe_set_param_value.
(finish_options): Use maybe_set_param_value.
* target.def (target_option.default_params): New hook.
* toplev.c (general_init): Call
targetm.target_option.default_params.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165303 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR tree-optimization/45902
irar [Mon, 11 Oct 2010 12:18:47 +0000 (12:18 +0000)]
PR tree-optimization/45902
* tree-vect-slp.c (vect_get_constant_vectors): Use statement's
vector type for constants, unless it's a pointer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165302 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Mon, 11 Oct 2010 11:49:46 +0000 (11:49 +0000)]
2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165301 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Robert Dewar <dewar@adacore.com>
charlet [Mon, 11 Oct 2010 10:43:04 +0000 (10:43 +0000)]
2010-10-11  Robert Dewar  <dewar@adacore.com>

* g-htable.ads (Get_First): New procedural version for Simple_HTable
(Get_Next): New procedural version for Simple_HTable
* s-htable.adb (Get_First): New procedural version for Simple_HTable
(Get_Next): New procedural version for Simple_HTable
* s-htable.ads (Get_First): New procedural version for Simple_HTable
(Get_Next): New procedural version for Simple_HTable

2010-10-11  Ed Schonberg  <schonberg@adacore.com>

* sem_aggr.adb (Propagate_Discriminants): To gather the components of a
variant part, use the association list of the subaggregate, which
already includes the values of the needed discriminants.

2010-10-11  Robert Dewar  <dewar@adacore.com>

* aspects.ads, aspects.adb: Changes to accomodate aspect delay
(Tree_Write): New procedure.
* atree.ads, atree.adb: Flag3 is now Has_Aspects and applies to all
nodes.
* atree.h: Flag3 is now Has_Aspects and applies to all nodes
* debug.adb: Add debug flag gnatd.A
* einfo.adb (Has_Delayed_Aspects): New flag
(Get_Rep_Item_For_Entity): New function
* einfo.ads (Has_Delayed_Aspects): New flag
(Get_Rep_Item_For_Entity): New function
* exp_ch13.adb (Expand_N_Freeze_Entity): Insert delayed aspects into
tree.
* exp_ch3.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb: New calling
sequence for Freeze_Entity.
* freeze.ads, freeze.adb (Freeze_Entity): Takes node rather than source
ptr. All calls are changed to this new interface.
(Freeze_And_Append): Same change
(Freeze_Entity): Evaluate deferred aspects
* sem_attr.adb: New calling sequence for Freeze_Entity
(Eval_Attribute): Don't try to evaluate attributes of unfrozen types
when we are in spec expression preanalysis mode.
* sem_ch10.adb: New calling sequence for Freeze_Entity
* sem_ch11.adb: Simplify analysis of aspect specifications now that the
flag Has_Aspects applies to all nodes (no need to save aspects).
* sem_ch12.adb: Simplify analysis of aspect specifications now that the
flag Has_Aspects applies to all nodes (no need to save aspects).
* sem_ch13.adb (Analyze_Aspect_Specifications): Major rewrite to
accomodate delaying aspect evaluation to the freeze point.
(Duplicate_Clause): Simplify using Get_Rep_Item_For_Entity, and also
accomodate delayed aspects.
(Rep_Item_Too_Late): Deal with delayed aspects case
* sem_ch13.ads (Rep_Item_Too_Late): Document handling of delayed aspects
* sem_ch3.adb (Analyze_Subtype_Declaration): Make sure that generic
actual types are properly frozen (this is needed because of the new
check in Eval_Attribute that declines to evaluate attributes
for unfrozen types).
Simplify analysis of aspect specifications now that the flag
Has_Aspects applies to all nodes (no need to save aspects).
* sem_ch3.ads (Preanalyze_Spec_Expression): Note use for delayed aspects
* sem_ch5.adb: Simplify analysis of aspect specifications now that the
flag Has_Aspects applies to all nodes (no need to save aspects).
New calling sequence for Freeze_Entity.
* sem_ch9.adb, sem_ch7.adb, sem_ch6.adb: Simplify analysis of aspect
specifications now that the flag Has_Aspects applies to all nodes
(no need to save aspects).
New calling sequence for Freeze_Entity
* sem_prag.adb (Check_Duplicate_Pragma): Simplify using
Get_Rep_Item_For_Entity
(Get_Pragma_Arg): Moved to Sinfo
* sinfo.ads, sinfo.adb (Aspect_Rep_Item_: New field
(Is_Delayed_Aspect): New flag
(Next_Rep_Item): Document use for aspects
(Get_Pragma_Arg): Moved here from Sem_Prag
* sprint.adb (Sprint_Aspect_Specifications): Now called after semicolon
is output and removes semicolon (simplifies interface).
(Sprint_Node_Actual): Simplify handling of aspects now that Has_Aspects
applies to any node.
* tree_gen.adb: Write contents of Aspect_Specifications hash table
* tree_in.adb: Read and initialize Aspect_Specifications hash table
* treepr.adb (Print_Node): Print Has_Aspects flag
(Print_Node): Print Aspect_Specifications in Has_Aspects set
* xtreeprs.adb: Remove obsolete references to Flag1,2,3

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165300 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Robert Dewar <dewar@adacore.com>
charlet [Mon, 11 Oct 2010 10:34:53 +0000 (10:34 +0000)]
2010-10-11  Robert Dewar  <dewar@adacore.com>

* aspects.ads, aspects.adb: Major revision of this package for 2nd
stage of aspects implementation.
* gcc-interface/Make-lang.in: Add entry for aspects.o
* gcc-interface/Makefile.in: Add aspects.o to GNATMAKE_OBJS
* par-ch13.adb (Aspect_Specifications_Present): New function
(P_Aspect_Specifications): New procedure
* par-ch3.adb (P_Type_Declaration): Handle aspect specifications
(P_Derived_Type_Def_Or_Private_Ext_Decl): Handle aspect specifications
(P_Identifier_Declarations): Handle aspect specifications
(P_Component_Items): Handle aspect specifications
(P_Subtype_Declaration): Handle aspect specifications
* par-ch6.adb (P_Subprogram): Handle aspect specifications
* par-ch9.adb (P_Entry_Declaration): Handle aspect specifications
* par.adb (Aspect_Specifications_Present): New function
(P_Aspect_Specifications): New procedure
* sem.adb (Analyze_Full_Type_Declaration): New name for
Analyze_Type_Declaration.
(Analyze_Formal_Package_Declaration): New name (add _Declaration)
(Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
(Analyze_Protected_Type_Declaration): New name (add _Declaration)
(Analyze_Single_Protected_Declaration): New name (add _Declaration)
(Analyze_Single_Task_Declaration): New name (add _Declaration)
(Analyze_Task_Type_Declaration): New name (add _Declaration)
* sem_cat.adb (Analyze_Full_Type_Declaration): New name for
Analyze_Type_Declaration.
* sem_ch11.adb (Analyze_Exception_Declaration): Analyze aspect
specifications.
* sem_ch12.adb (Analyze_Formal_Object_Declaration): Handle aspect
specifications.
(Analyze_Formal_Package_Declaration): New name (add _Declaration)
(Analyze_Formal_Package_Declaration): Handle aspect specifications
(Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
(Analyze_Formal_Subprogram_Declaration): Handle aspect specifications
(Analyze_Formal_Type_Declaration): Handle aspect specifications
(Analyze_Generic_Package_Declaration): Handle aspect specifications
(Analyze_Generic_Subprogram_Declaration): Handle aspect specifications
(Analyze_Package_Instantiation): Handle aspect specifications
(Analyze_Subprogram_Instantiation): Handle aspect specifications
* sem_ch12.ads (Analyze_Formal_Package_Declaration): New name (add
_Declaration).
(Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
* sem_ch13.adb (Analyze_Aspect_Specifications): New procedure
(Duplicate_Clause): New function, calls to this function are added to
processing for all aspects.
* sem_ch13.ads (Analyze_Aspect_Specifications): New procedure
* sem_ch3.adb (Analyze_Full_Type_Declaration): New name for
Analyze_Type_Declaration.
* sem_ch3.ads (Analyze_Full_Type_Declaration): New name for
Analyze_Type_Declaration.
* sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Analyze aspect
specifications.
(Analyze_Subprogram_Declaration): Analyze aspect specifications
* sem_ch7.adb (Analyze_Package_Declaration): Analyze aspect
specifications.
(Analyze_Private_Type_Declaration): Analyze aspect specifications
* sem_ch9.adb (Analyze_Protected_Type_Declaration): Analyze aspect
specifications.
(Analyze_Protected_Type_Declaration): New name (add _Declaration)
(Analyze_Single_Protected_Declaration): Analyze aspect specifications
(Analyze_Single_Protected_Declaration): New name (add _Declaration)
(Analyze_Single_Task_Declaration): Analyze aspect specifications
(Analyze_Single_Task_Declaration): New name (add _Declaration)
(Analyze_Task_Type_Declaration): Analyze aspect specifications
(Analyze_Task_Type_Declaration): New name (add _Declaration)
* sem_ch9.ads (Analyze_Protected_Type_Declaration): New name (add
_Declaration).
(Analyze_Single_Protected_Declaration): New name (add _Declaration)
(Analyze_Single_Task_Declaration): New name (add _Declaration)
(Analyze_Task_Type_Declaration): New name (add _Declaration)
* sem_prag.adb: Use Get_Pragma_Arg systematically so that we do not
have to generate unnecessary pragma argument associations (this matches
the doc).
Throughout do changes to accomodate aspect specifications, including
specializing messages, handling the case of not going through all
homonyms, and allowing for cancellation.
* sinfo.ads, sinfo.adb: Clean up obsolete documentation for Flag1,2,3
(Aspect_Cancel): New flag
(From_Aspect_Specification): New flag
(First_Aspect): Removed flag
(Last_Aspect): Removed flag
* sprint.adb (Sprint_Aspect_Specifications): New procedure
(Sprint_Node_Actual): Add calls to Sprint_Aspect_Specifications

2010-10-11  Bob Duff  <duff@adacore.com>

* sem_res.adb (Resolve_Actuals): Minor change to warning messages so
they match in Ada 95, 2005, and 2012 modes, in the case where the
language didn't change. Same thing for the run-time exception message.

2010-10-11  Javier Miranda  <miranda@adacore.com>

* debug.adb Document that switch -gnatd.p enables the CIL verifier.

2010-10-11  Robert Dewar  <dewar@adacore.com>

* s-htable.adb: Minor reformatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165299 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Javier Miranda <miranda@adacore.com>
charlet [Mon, 11 Oct 2010 10:24:08 +0000 (10:24 +0000)]
2010-10-11  Javier Miranda  <miranda@adacore.com>

* debug.adb: Update comment.

2010-10-11  Vincent Celier  <celier@adacore.com>

* gnatcmd.adb (GNATCmd): Set Opt.Unchecked_Shared_Lib_Imports to True
unconditionally as for "gnat make" the projects are not processed in
the GNAT driver.

2010-10-11  Ed Schonberg  <schonberg@adacore.com>

* sem_ch10.ads, sem_ch10.adb (Load_Needed_Body): Add parameter to
suppress semantic analysis of the body when inlining, prior to
verifying that the body does not have a with_clause on a descendant
unit.
* inline.adb (Analyze_Inlined_Bodies): Do not inline a body if it has a
with_clause on a descendant.
(Scope_In_Main_Unit): Simplify.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165298 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Robert Dewar <dewar@adacore.com>
charlet [Mon, 11 Oct 2010 10:20:46 +0000 (10:20 +0000)]
2010-10-11  Robert Dewar  <dewar@adacore.com>

* exp_ch6.adb, freeze.adb: Minor reformatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165297 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Vincent Celier <celier@adacore.com>
charlet [Mon, 11 Oct 2010 10:16:51 +0000 (10:16 +0000)]
2010-10-11  Vincent Celier  <celier@adacore.com>

* gnatcmd.adb (GNATCmd): For all tools other than gnatmake, allow
shared library projects to import projects that are not shared library
projects.

2010-10-11  Javier Miranda  <miranda@adacore.com>

* debug.adb: Document that switch -gnatd.o generates the CIL listing.

2010-10-11  Arnaud Charlet  <charlet@adacore.com>

* sem_prag.adb (Process_Suppress_Unsuppress): Only ignore
Suppress/Unsuppress pragmas in codepeer mode on user code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165296 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Javier Miranda <miranda@adacore.com>
charlet [Mon, 11 Oct 2010 10:13:26 +0000 (10:13 +0000)]
2010-10-11  Javier Miranda  <miranda@adacore.com>

* exp_ch6.adb (Expand_Call): For VM platforms, add missing expansion of
tag check in case of dispatching call through "=".

2010-10-11  Ed Schonberg  <schonberg@adacore.com>

* sem_ch3.adb (Access_Subprogram_Declaration): In Ada2012 an incomplete
type is legal in the profile of any basic declaration.
* sem_ch6.adb (Analyze_Return_Type, Process_Formals): In Ada2012 an
incomplete type, including a limited view of a type, is legal in the
profile of any subprogram declaration.
If the type is tagged, its use is also legal in a body.
* sem_ch10.adb (Install_Limited_With_Clause): Do not process context
item if misplaced.
(Install_Limited_Withed_Unit): Refine legality checks when both the
limited and the non-limited view of a package are visible in the context
of a unit.
If this is not an error case, the limited view is ignored.
freeze.adb (Freeze_Entity): In Ada2012, an incomplete type is legal in
access to subprogram declarations

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165295 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Robert Dewar <dewar@adacore.com>
charlet [Mon, 11 Oct 2010 10:10:01 +0000 (10:10 +0000)]
2010-10-11  Robert Dewar  <dewar@adacore.com>

* exp_ch6.adb: Code clean up.
* exp_util.adb: Minor reformatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165294 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Arnaud Charlet <charlet@adacore.com>
charlet [Mon, 11 Oct 2010 10:07:06 +0000 (10:07 +0000)]
2010-10-11  Arnaud Charlet  <charlet@adacore.com>

* sem_ch3.adb, exp_ch6.adb
(Make_Build_In_Place_Call_In_Anonymous_Context,
Make_Build_In_Place_Call_In_Assignment,
Make_Build_In_Place_Call_In_Object_Declaration): Fix calls to
Add_Task_Actuals_To_Build_In_Place_Call in case of No_Task_Hierarchy
restriction.
(Access_Definition): Add missing handling of No_Task_Hierarchy.

2010-10-11  Javier Miranda  <miranda@adacore.com>

* exp_util.adb (Remove_Side_Effects): No action needed for renamings of
class-wide expressions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165293 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * xr_tabls.adb, sem_res.adb: Minor reformattingem_res.adb
charlet [Mon, 11 Oct 2010 10:03:01 +0000 (10:03 +0000)]
* xr_tabls.adb, sem_res.adb: Minor reformattingem_res.adb

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165292 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Arnaud Charlet <charlet@adacore.com>
charlet [Mon, 11 Oct 2010 10:02:09 +0000 (10:02 +0000)]
2010-10-11  Arnaud Charlet  <charlet@adacore.com>

* gnat_rm.texi, exp_attr.adb, sem_attr.adb, sem_attr.ads,
snames.ads-tmpl (Analyze_Attribute, Expand_N_Attribute_Reference): Add
handling of Attribute_Ref. Add missing blanks in some error messages.
(Attribute_Ref, Name_Ref): Declare.
Document 'Ref attribute.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165291 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Robert Dewar <dewar@adacore.com>
charlet [Mon, 11 Oct 2010 09:58:30 +0000 (09:58 +0000)]
2010-10-11  Robert Dewar  <dewar@adacore.com>

* sem_attr.adb: Minor reformatting.

2010-10-11  Javier Miranda  <miranda@adacore.com>

* sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
package System.Aux_Dec in VM platforms.

2010-10-11  Arnaud Charlet  <charlet@adacore.com>

* sem_prag.adb (Process_Suppress_Unsuppress): Ignore
Suppress/Unsuppress pragmas in codepeer mode.
(Analyze_Pragma [Pragma_Suppress_All]): Do not generate error message in
codepeer mode.
* einfo.ads: Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165290 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Emmanuel Briot <briot@adacore.com>
charlet [Mon, 11 Oct 2010 09:52:49 +0000 (09:52 +0000)]
2010-10-11  Emmanuel Briot  <briot@adacore.com>

* sinfo.adb: Use GNAT.HTable rather than System.HTable.
* prj-nmsc.adb: Minor reformatting.

2010-10-11  Thomas Quinot  <quinot@adacore.com>

* sem_attr.adb (Type_Key): Code simplification.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165289 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Tristan Gingold <gingold@adacore.com>
charlet [Mon, 11 Oct 2010 09:49:37 +0000 (09:49 +0000)]
2010-10-11  Tristan Gingold  <gingold@adacore.com>

* gcc-interface/utils2.c (maybe_wrap_malloc): Fix crash when allocating
very large object on VMS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165288 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Javier Miranda <miranda@adacore.com>
charlet [Mon, 11 Oct 2010 09:48:35 +0000 (09:48 +0000)]
2010-10-11  Javier Miranda  <miranda@adacore.com>

* sem_ch10.adb (Analyze_With_Clause): Add missing test to ensure
availability of attribute Instance_Spec.

2010-10-11  Arnaud Charlet  <charlet@adacore.com>

* gnat1drv.adb (Adjust_Global_Switches): Disable codepeer mode if
checking syntax only or in ASIS mode.

2010-10-11  Ed Schonberg  <schonberg@adacore.com>

* sem_ch6.adb (Check_Delayed_Subprogram): Abstract subprograms may also
need a freeze node if some type in the profile has one.
* gcc-interface/trans.c (case N_Abstract_Subprogram_Declaration): If
entity has a freeze node, defer elaboration.

2010-10-11  Emmanuel Briot  <briot@adacore.com>

* prj-nmsc.adb (Check_Aggregate_Project): Add support for finding all
aggregated projects.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165287 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Ed Schonberg <schonberg@adacore.com>
charlet [Mon, 11 Oct 2010 09:34:17 +0000 (09:34 +0000)]
2010-10-11  Ed Schonberg  <schonberg@adacore.com>

* sem_res.adb (Resolve_Entry_Call): Generate 's' reference for entry
call.
* sem_ch6.adb: Diagnose additional error condition.

2010-10-11  Bob Duff  <duff@adacore.com>

* par.adb (Par): Clarify wording of certain error messages.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165286 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Gary Dismukes <dismukes@adacore.com>
charlet [Mon, 11 Oct 2010 09:30:15 +0000 (09:30 +0000)]
2010-10-11  Gary Dismukes  <dismukes@adacore.com>

* sem_disp.adb (Check_Dispatching_Operation): Revise test for warning
about nondispatching subprograms to use In_Same_List (reducing use of
Parent links).

2010-10-11  Ed Schonberg  <schonberg@adacore.com>

* xr_tabls.adb, sem_res.adb, lib-xref.adb, lib-xref.ads: Use s for
reference in a static call.

2010-10-11  Steve Baird  <baird@adacore.com>

* exp_attr.adb (Expand_N_Attribute_Reference, case Type_Key): Type_Key
attribute should always be transformed into a string literal in
Analyze_Attribute.
* par-ch4.adb: Type_Key attribute's type is String; update value of
Is_Parameterless_Attribute constant to reflect this.
* sem_attr.adb (Analyze_Attribute): Recognize Type_Key attribute and
rewrite it as a string literal (attribute value is always known
statically).
* snames.ads-tmpl: Add entries for Type_Key attribute.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165285 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Ed Schonberg <schonberg@adacore.com>
charlet [Mon, 11 Oct 2010 09:25:26 +0000 (09:25 +0000)]
2010-10-11  Ed Schonberg  <schonberg@adacore.com>

* lib-xref.adb (Output_References): Common handling for objects and
formals of an anonymous access type.

2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>

* make.adb (Scan_Make_Arg): Also pass -O to both compiler and linker.

2010-10-11  Ed Schonberg  <schonberg@adacore.com>

* sem_ch6.adb: Fix check for illegal equality declaration in Ada2012

2010-10-11  Gary Dismukes  <dismukes@adacore.com>

* sem_disp.adb (Check_Dispatching_Operation): When testing for issuing
a warning about subprograms of a tagged type not being dispatching,
limit this to cases where the tagged type and the subprogram are
declared within the same declaration list.

2010-10-11  Jerome Lambourg  <lambourg@adacore.com>

* projects.texi, prj-attr.adb: Add new attribute documentation_dir.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165284 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Bob Duff <duff@adacore.com>
charlet [Mon, 11 Oct 2010 09:20:53 +0000 (09:20 +0000)]
2010-10-11  Bob Duff  <duff@adacore.com>

* par-ch9.adb, sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, impunit.adb,
impunit.ads, sem_ch5.adb, sem_type.adb, exp_imgv.adb, exp_util.adb,
switch-c.adb, exp_attr.adb, exp_ch9.adb, par-ch11.adb, usage.adb,
sem_ch9.adb, sem_ch10.adb, scng.adb, checks.adb, sem_prag.adb,
sem_ch12.adb, par-ch2.adb, freeze.adb, par-ch4.adb, sem_util.adb,
sem_res.adb, sem_attr.adb, par-ch6.adb, exp_ch4.adb, exp_ch6.adb,
sem_ch4.adb, exp_ch8.adb, par-ch10.adb, sem_ch6.adb, par-prag.adb,
exp_disp.adb, par-ch12.adb, sem_ch8.adb, snames.adb-tmpl, opt.ads,
exp_aggr.adb, sem_cat.adb, sem_ch13.adb, par-ch3.adb, exp_strm.adb,
exp_cg.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb: Use Ada_2005
instead of Ada_05 (Ada_Version_Type).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165283 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Bob Duff <duff@adacore.com>
charlet [Mon, 11 Oct 2010 09:11:57 +0000 (09:11 +0000)]
2010-10-11  Bob Duff  <duff@adacore.com>

* sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
(Ada_Version_Type).

2010-10-11  Javier Miranda  <miranda@adacore.com>

* exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
dereference then do not exclude dereferences of access-to-constant
types to handle them as constant view of variables (and hence remove
side effects when required).
* sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
are properly handled.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165282 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Robert Dewar <dewar@adacore.com>
charlet [Mon, 11 Oct 2010 09:04:40 +0000 (09:04 +0000)]
2010-10-11  Robert Dewar  <dewar@adacore.com>

* sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.

2010-10-11  Javier Miranda  <miranda@adacore.com>

* exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
to exp_ch6.
(Expand_N_Simple_Return_Statement): Moved to exp_ch6.
* exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
exp_ch6.
(Expand_Simple_Function_Return): Move to exp_ch6.
(Expand_N_Extended_Return_Statement): Moved to exp_ch6.
(Expand_N_Simple_Return_Statement): Moved to exp_ch6.

2010-10-11  Robert Dewar  <dewar@adacore.com>

* snames.ads-tmpl: Add names for aspects.
* aspects.ads, aspects.adb: New.
* gcc-interface/Make-lang.in: Update dependencies.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165281 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Ed Schonberg <schonberg@adacore.com>
charlet [Mon, 11 Oct 2010 08:48:19 +0000 (08:48 +0000)]
2010-10-11  Ed Schonberg  <schonberg@adacore.com>

* exp_ch6.adb (Expand_Actuals): If an actual is the current instance of
a task type, it must be replaced with a reference to Self.

2010-10-11  Vincent Celier  <celier@adacore.com>

* adaint.h: Add prototype for function __gnat_create_output_file_new.

2010-10-11  Javier Miranda  <miranda@adacore.com>

* sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
aggregate bounds.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165280 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Arnaud Charlet <charlet@adacore.com>
charlet [Mon, 11 Oct 2010 08:44:15 +0000 (08:44 +0000)]
2010-10-11  Arnaud Charlet  <charlet@adacore.com>

        * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
        for AI05-0033 in CodePeer mode.

2010-10-11  Robert Dewar  <dewar@adacore.com>

        * atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
        * csinfo.adb: Aspect_Specifications is a new special field
        * einfo.adb (Flag3): New unused flag
        * exp_util.adb (Insert_Actions): Add processing for
        N_Aspect_Specification.
        * sem.adb: Add entry for N_Aspect_Specification.
        * sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
        (Has_Aspect_Specifications): New flag
        (Permits_Aspect_Specifications): New function
        (Aspect_Specifications): New function
        (Set_Aspect_Specifications): New procedure
        * sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
        (Sprint_Node): Add dummy entry for N_Aspect_Specification
        * treepr.adb (Flag3): New flag to be listed

2010-10-11  Vincent Celier  <celier@adacore.com>

        * adaint.c: Minor reformatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165279 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Arnaud Charlet <charlet@adacore.com>
charlet [Mon, 11 Oct 2010 08:41:22 +0000 (08:41 +0000)]
2010-10-11  Arnaud Charlet  <charlet@adacore.com>

* sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
for AI05-0033 in CodePeer mode.

2010-10-11  Robert Dewar  <dewar@adacore.com>

* atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
* csinfo.adb: Aspect_Specifications is a new special field
* einfo.adb (Flag3): New unused flag
* exp_util.adb (Insert_Actions): Add processing for
N_Aspect_Specification.
* sem.adb: Add entry for N_Aspect_Specification.
* sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
(Has_Aspect_Specifications): New flag
(Permits_Aspect_Specifications): New function
(Aspect_Specifications): New function
(Set_Aspect_Specifications): New procedure
* sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
(Sprint_Node): Add dummy entry for N_Aspect_Specification
* treepr.adb (Flag3): New flag to be listed

2010-10-11  Vincent Celier  <celier@adacore.com>

* adaint.c: Minor reformatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165278 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Robert Dewar <dewar@adacore.com>
charlet [Mon, 11 Oct 2010 08:28:58 +0000 (08:28 +0000)]
2010-10-11  Robert Dewar  <dewar@adacore.com>

* sem_ch6.adb, s-htable.ads: Minor reformatting.

2010-10-11  Ed Schonberg  <schonberg@adacore.com>

* sem_ch4.adb (Analyze_Selected_Component): If the selector is
invisible in an instantiation, and both the formal and the actual are
private extensions of the same type, look for the desired component in
the proper view of the parent type.

2010-10-11  Vincent Celier  <celier@adacore.com>

* adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
AIX, Tru64, Darwin, IRIX and HP-UX.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165277 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Robert Dewar <dewar@adacore.com>
charlet [Mon, 11 Oct 2010 08:23:31 +0000 (08:23 +0000)]
2010-10-11  Robert Dewar  <dewar@adacore.com>

* a-textio.adb: Minor reformatting

2010-10-11  Robert Dewar  <dewar@adacore.com>

* a-suesen.ads, a-suenst.ads,
a-suesen.adb, a-suenst.adb,
a-suewse.adb, a-suewst.adb,
a-suewse.ads, a-suewst.ads,
a-suezse.ads, a-suezst.ads,
a-suezse.adb, a-suezst.adb: New name for string encoding packages.
* impunit.adb: New names for string encoding units
* Makefile.rtl: New names for string encoding units
* rtsfind.ads: Minor code reorganization.

2010-10-11  Ed Schonberg  <schonberg@adacore.com>

* exp_ch5.adb: Code clean up.

2010-10-11  Ed Schonberg  <schonberg@adacore.com>

* sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
returns when in a generic context.
(Analyze_Function_Return): ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165276 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Robert Dewar <dewar@adacore.com>
charlet [Mon, 11 Oct 2010 07:30:09 +0000 (07:30 +0000)]
2010-10-11  Robert Dewar  <dewar@adacore.com>

* s-multip.ads: Fix header.
* sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165275 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Vincent Celier <celier@adacore.com>
charlet [Mon, 11 Oct 2010 07:14:08 +0000 (07:14 +0000)]
2010-10-11  Vincent Celier  <celier@adacore.com>

* Makefile.rtl: Add s-multip.
* adaint.c: New function __gnat_number_of_cpus, implemented for Linux,
defaulting to 1 for other platforms.
* adaint.h: New function __gnat_number_of_cpus.
* impunit.adb (Non_Imp_File_Names_12): New file list for Ada 2012,
with a single component "s-multip".
* impunit.ads (Kind_Of_Unit): New enumerated value Ada_12_Unit for Ada
2012.
* rtsfind.ads (RTU_Id): New enumerated value System_Multiprocessors
* s-multip.ads, s-multip.adb: New Ada 2012 package.
* sem_ch10.adb (Analyze_With_Clause): Check also Ada 2012 units.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165274 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoFix header.
charlet [Mon, 11 Oct 2010 07:09:07 +0000 (07:09 +0000)]
Fix header.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165273 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Javier Miranda <miranda@adacore.com>
charlet [Mon, 11 Oct 2010 07:05:08 +0000 (07:05 +0000)]
2010-10-11  Javier Miranda  <miranda@adacore.com>

* a-textio.adb: Move new implementation of Get_Line to a subunit.
* a-tigeli.adb: New subunit containing the implementation of Get_Line.

2010-10-11  Ed Schonberg  <schonberg@adacore.com>

* sem_aux.adb: Code clean up.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165272 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Robert Dewar <dewar@adacore.com>
charlet [Mon, 11 Oct 2010 06:59:29 +0000 (06:59 +0000)]
2010-10-11  Robert Dewar  <dewar@adacore.com>

* sem_ch3.adb, sem_aux.adb, sem_ch6.adb: Minor reformatting

2010-10-11  Robert Dewar  <dewar@adacore.com>

* einfo.adb, atree.h, atree.ads, atree.adb: Define seven new flags
Flag248-Flag254.  Define new field Field29.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165271 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR target/45870
jakub [Mon, 11 Oct 2010 06:17:45 +0000 (06:17 +0000)]
PR target/45870
* config/i386/i386.c (ix86_delegitimize_tls_address): New function.
(ix86_delegitimize_address): Use it.

* gcc.dg/tls/pr45870.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165270 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoIn libobjc/:
nicola [Mon, 11 Oct 2010 02:36:32 +0000 (02:36 +0000)]
In libobjc/:
2010-10-11  Nicola Pero  <nicola.pero@meta-innovation.com>

        * Makefile.in (C_SOURCE_FILES): Added ivars.c.
        * ivars.c: New.
        * objc/objc.h: Updated comments.
        * objc/runtime.h (object_getClass): New.
        (object_getClassName): New.
        (object_setClass): New.
        (class_getInstanceVariable): New.
        (object_getIndexedIvars): New.
        (object_getInstanceVariable): New.
        (object_setInstanceVariable): New.
        (object_getIvar): New.
        (object_setIvar): New.
        (ivar_getName): New.
        (ivar_getOffset): New.
        (ivar_getTypeEncoding): New.
        * objc-private/module-abi-8.h (struct objc_class): Added.
        * objects.c (object_getClassName): New.
        (object_setClass): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165269 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoDaily bump.
gccadmin [Mon, 11 Oct 2010 00:18:39 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165268 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-11 Nicola Pero <nicola.pero@meta-innovation.com>
nicola [Sun, 10 Oct 2010 23:28:12 +0000 (23:28 +0000)]
2010-10-11  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objc/objc.h: Updated comments.
        * objc/objc-api.h: (object_copy): Added one argument; use a
        #define to maintain backwards-compatibility.  Moved
        _objc_object_alloc, _objc_object_copy, _objc_object_dispose and
        objc_get_uninstalled_dtable into
        objc/deprecated/objc_get_uninstalled_dtable.h and
        objc/deprecated/objc_object_alloc.h.  Include these files.
        * objc/deprecated/objc_get_uninstalled_dtable.h: New.
        * objc/deprecated/objc_object_alloc.h: New.
        * objc/runtime.h (set_getName): New.
        (sel_getType): New.
        (sel_getUid): New.
        (sel_registerName): New.
        (sel_registerTypedName): New.
        (sel_isEqual): New.
        (class_createInstance): New.
        (object_copy): New.
        (object_dispose): New.
        * objects.c: Do not include tconfig.h.  Include gc_typed.h if
        building the garbage collection version.
        (__objc_object_alloc): Removed.
        (__objc_object_copy): Removed.
        (__objc_object_dispose): Removed.
        (class_createInstance): New from code in class_create_instance.
        Cast second argument of GC_malloc_explicitly_typed.  Use
        objc_calloc.  Do not call _objc_object_alloc.
        (class_create_instance): Call class_createInstance.
        (object_copy): Added extraBytes argument.  Do not call
        _objc_object_copy.
        (object_dispose): Do not call _objc_object_dispose.
        * memory.c (objc_free): When using garbage collection, mark the
        argument as unused.
        * selector.c (sel_getName): New.
        (sel_get_name): Call sel_getName.
        (sel_getType): New.
        (sel_get_type): Call sel_getType.
        (sel_registerName): New.
        (sel_register_name): Call sel_registerName.
        (sel_registerTypedName): New.
        (sel_register_typed_name): Call sel_registerTypedName.
        (sel_getUid): New.
        (sel_get_uid): Call sel_getUid.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165264 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-10 Janus Weil <janus@gcc.gnu.org>
janus [Sun, 10 Oct 2010 21:35:10 +0000 (21:35 +0000)]
2010-10-10  Janus Weil  <janus@gcc.gnu.org>

PR fortran/45961
* resolve.c (resolve_typebound_function): Bugfix for type-bound
operators.

2010-10-10  Janus Weil  <janus@gcc.gnu.org>

PR fortran/45961
* gfortran.dg/typebound_operator_6.f03: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165263 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10.10 Kai Tietz <kai.tietz@onevision.com>
ktietz [Sun, 10 Oct 2010 19:25:09 +0000 (19:25 +0000)]
2010-10.10  Kai Tietz  <kai.tietz@onevision.com>

* g++.dg/ext/dllexport-MI1.C: Enable for x86_64 mingw
and adjust -export symbol scanning.
* g++.dg/ext/dllexport1.C: Likewise.
* g++.dg/ext/dllexport3.C: Likewise.
* gcc.dg/dll-3.c: Likewise.
* gcc.dg/dll-4.c: Likewise.
* gcc.dg/dll-5.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165261 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * gcc.dg/tree-prof/ic-misattribution-1a.c: Cleanup tree_profile_ipa
uros [Sun, 10 Oct 2010 18:24:59 +0000 (18:24 +0000)]
* gcc.dg/tree-prof/ic-misattribution-1a.c: Cleanup tree_profile_ipa
instead of tree_profile dump file.
* g++.dg/tree-prof/inline_mismatch_args.C: Cleanup einline dump file.
* gfortran.dg/derived_array_intrinisics_1.f90: Cleanup original
dump file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165259 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * gcc.dg/lto/20101009-1_0.c (bar): Fix asm constraints.
uros [Sun, 10 Oct 2010 18:02:44 +0000 (18:02 +0000)]
* gcc.dg/lto/20101009-1_0.c (bar): Fix asm constraints.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165257 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoIn libobjc/:
nicola [Sun, 10 Oct 2010 17:43:07 +0000 (17:43 +0000)]
In libobjc/:
2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objc/objc-api.h: Define Method, Method_t, Category and
        Category_t.  Prevent including this file at the same time as
        objc/runtime.h.  Updated comments.
        * objc/deprecated/struct_objc_method.h: Do not define Method,
        Method_t.
        * objc/deprecated/struct_objc_category.h: Do not define Category,
        Category_t.
        * objc-private/module-abi-8.h: New file containing a copy of all
        the structure definitions.  Not used yet.
        * objc/encoding.h (objc_aligned_size): Removed duplicate
        declaration.  Updated comments.
        * objc/runtime.h: Added Ivar, objc_property_t, Property, Method,
        Category, struct objc_method_description, _C_ID and similar,
        _C_CONST and similar and _F_CONST and similar.  Added
        objc_sizeof_type, objc_alignof_type, objc_aligned_size,
        objc_promoted_size, objc_skip_type_qualifier, objc_skip_typespec,
        objc_skip_offset, objc_skip_argspec, objc_get_type_qualifiers,
        struct objc_struct_layout, objc_layout_structure,
        objc_layout_structure_next_member, objc_layout_finish_structure,
        objc_layout_structure_get_info.  Prevent including this file at
        the same time as objc/objc-api.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165256 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
ebotcazou [Sun, 10 Oct 2010 17:05:07 +0000 (17:05 +0000)]
* opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165255 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * gcc-interface/lang.opt (gdwarf+): Remove.
ebotcazou [Sun, 10 Oct 2010 13:25:19 +0000 (13:25 +0000)]
* gcc-interface/lang.opt (gdwarf+): Remove.
* gcc-interface/gigi.h (get_parallel_type): Likewise
* gcc-interface/misc.c (gnat_dwarf_extensions): Likewise.
(gnat_handle_option): Remove OPT_gdwarfplus case.
(gnat_post_options): Remove setting of use_gnu_debug_info_extensions
from gnat_dwarf_extensions.
* gcc-interface/trans.c (gigi): Remove -gdwarf+ initializations.
* gcc-interface/utils.c (get_parallel_type): Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165254 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
ebotcazou [Sun, 10 Oct 2010 12:29:16 +0000 (12:29 +0000)]
* gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
invert_truthvalue_loc instead of invert_truthvalue.
* gcc-interface/utils2.c (build_binary_op) <NE_EXPR>: Likewise.
(build_unary_op) <TRUTH_NOT_EXPR>: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165253 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-10 Uros Bizjak <ubizjak@gmail.com>
uros [Sun, 10 Oct 2010 12:26:25 +0000 (12:26 +0000)]
2010-10-10  Uros Bizjak  <ubizjak@gmail.com>

* config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
to cum struct in the call to function_arg_advance.
(alpha_function_arg_advance): Mark named as unused.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165252 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
ebotcazou [Sun, 10 Oct 2010 11:47:29 +0000 (11:47 +0000)]
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
assertion on the types of the parameters.  Use KIND local variable.
<E_Incomplete_Type>: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165251 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
ebotcazou [Sun, 10 Oct 2010 11:26:16 +0000 (11:26 +0000)]
* gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
* gcc-interface/gigi.h (annotate_object): Add BY_DOUBLE_REF parameter.
* gcc-interface/decl.c (annotate_object): Likewise and handle it.
(gnat_to_gnu_entity): Adjust calls to annotate_object.
(gnat_to_gnu_param): If fat pointer types are passed by reference on
the target, pass them by explicit reference.
* gcc-interface/misc.c (default_pass_by_ref): Fix type of constant.
* gcc-interface/trans.c (Identifier_to_gnu): Do DECL_BY_DOUBLE_REF_P.
(Subprogram_Body_to_gnu): Adjust call to annotate_object.
(call_to_gnu): Handle DECL_BY_DOUBLE_REF_P.
* gcc-interface/utils.c (convert_vms_descriptor): Add BY_REF parameter
and handle it.
(build_function_stub): Iterate on the parameters of the subprogram in
lieu of on the argument types.  Adjust call to convert_vms_descriptor.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165250 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoIn libobjc/:
nicola [Sun, 10 Oct 2010 11:18:57 +0000 (11:18 +0000)]
In libobjc/:
2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>

        * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h,
        struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h,
        struct_objc_method_list.h, struct_objc_module.h,
        struct_objc_protocol_list.h, struct_objc_symtab.h.
        * objc/deprecated/struct_objc_category.h: New.
        * objc/deprecated/struct_objc_ivar.h: New.
        * objc/deprecated/struct_objc_ivar_list.h: New.
        * objc/deprecated/struct_objc_method.h: New.
        * objc/deprecated/struct_objc_method_list.h: New.
        * objc/deprecated/struct_objc_module.h: New.
        * objc/deprecated/struct_objc_protocol_list.h: New.
        * objc/deprecated/struct_objc_symtab.h: New.
        * objc/deprecated/struct_objc_static_instances.h: New.
        * objc/objc-api.h: Definitions of deprecated structures moved into
        the above header fragment files in objc/deprecated/.  Include the
        files instead of definition the structures here.  Updated
        comments.
        * objc/runtime.h: Updated comments.  Do not include objc-api.h.
        (objc_set_enumeration_mutation_handler): Renamed to
        objc_setEnumerationMutationHandler.
        * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed
        to objc_setEnumerationMutationHandler.
        * objc/objc-exception.h (objc_set_exception_matcher): Renamed to
        objc_setExceptionMatcher.
        (objc_set_uncaught_exception_handler): Renamed to
        objc_setUncaughtExceptionHandler.
        * exception.c: Same changes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165249 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-09 Thomas Koenig <tkoenig@gcc.gnu.org>
tkoenig [Sun, 10 Oct 2010 09:52:46 +0000 (09:52 +0000)]
2010-10-09  Thomas Koenig  <tkoenig@gcc.gnu.org>

* frontend-passes.c:  Include opts.h.
(optimize_comparison):  Renamed from optimize_equality.
Change second argument to operation to be compared.
Use flag_finite_math_only to avoid comparing REAL and
COMPLEX only when NANs are honored.  Simplify comparing
of string concatenations where left or right operands are
equal.  Simplify all comparison operations, based on the result
of gfc_dep_compare_expr.
* dependency.c:  Include arith.h.
(gfc_are_identical_variables):  Volatile variables should not
compare equal to themselves.
(gfc_dep_compare_expr):  Handle string constants and string
concatenations.

2010-10-09  Thomas Koenig  <tkoenig@gcc.gnu.org>

* gfortran.dg/character_comparison_4.f90:  New test.
* gfortran.dg/character_comparison_5.f90:  New test.
* gfortran.dg/character_comparison_6.f90:  New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165248 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agogcc/
rsandifo [Sun, 10 Oct 2010 09:18:11 +0000 (09:18 +0000)]
gcc/
* config/mips/mips.c (mips_handle_option): Make "value" with
ATTRIBUTE_UNUSED.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165247 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoDaily bump.
gccadmin [Sun, 10 Oct 2010 00:18:22 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165246 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoIn libobjc/:
nicola [Sat, 9 Oct 2010 22:30:20 +0000 (22:30 +0000)]
In libobjc/:
2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objc-sync.c: Include objc-private/common.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165242 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoIn libobjc/:
nicola [Sat, 9 Oct 2010 22:22:23 +0000 (22:22 +0000)]
In libobjc/:
2010-10-10  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objc-foreach.c: Include objc-private/common.h.
        * objc/deprecated/METHOD_NULL.h: New file.
        * objc/objc-api.h: Include deprecated/METHOD_NULL.h instead of
        defining METHOD_NULL here.
        * Makefile.in (OBJC_DEPRECATED_H): Added METHOD_NULL.h.
        * Object.m ([+instancesRespondTo:]): Use (Method_t)0 instead of
        METHOD_NULL.
        ([-respondsTo:]): Same change.
        * objc/objc-api.h (method_get_imp): Converted it into a normal
        function so that we can hide the internals of struct objc_method.
        * sendmsg.c (method_get_imp): Implemented.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165241 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR rtl-opt/33721
rth [Sat, 9 Oct 2010 22:05:51 +0000 (22:05 +0000)]
PR rtl-opt/33721
* explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
required_align, tidy the code a bit.  Emit split_stack code in the
right place.  Mark the return value with the alignment properly.
* expr.h (allocate_dynamic_stack_space): Update decl.
* builtins.c (expand_builtin_apply): Update call to
allocate_dynamic_stack_space.
(expand_builtin_alloca): Likewise.  Remove TARGET parameter.
* calls.c (initialize_argument_information): Update call to
allocate_dynamic_stack_space.
(expand_call): Likewise.

* cfgexpand.c (get_decl_align_unit): Don't limit alignment.
Don't update_stack_alignment here.
(alloc_stack_frame_space): Make ALIGN unsigned.
(stack_var_cmp): Sort by alignment too.
(partition_stack_vars): Don't merge large and small alignment vars.
(expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
Take care when BASE is not virtual_stack_vars_rtx.
(expand_stack_vars): Allocate dynamic stack space for large
alignment variables.
(expand_one_stack_var): Update all to expand_one_stack_var_at.
(defer_stack_allocation): True for large alignment vars.
(update_stack_alignment): Merge into ...
(expand_one_var): ... here.
(gimple_expand_cfg): Place code from expand_stack_vars.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165240 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
froydnj [Sat, 9 Oct 2010 21:13:29 +0000 (21:13 +0000)]
* config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
* config/pdp11/pdp11.c (pdp11_function_arg): New function.
(pdp11_function_arg_advance): New function.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165239 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
froydnj [Sat, 9 Oct 2010 21:12:56 +0000 (21:12 +0000)]
* libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
* libgcc2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165238 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * gcc-interface/misc.c: Delete prototypes.
ebotcazou [Sat, 9 Oct 2010 20:23:05 +0000 (20:23 +0000)]
* gcc-interface/misc.c: Delete prototypes.
(gnat_init_options): Use local variable.
(lang_hooks): Move to the end of the file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165237 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoIn libobjc/:
nicola [Sat, 9 Oct 2010 20:11:02 +0000 (20:11 +0000)]
In libobjc/:
2010-10-09  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objc/objc-api.h (struct objc_super, Super, Super_t,
        objc_msg_lookup_super, objc_msg_sendv, objc_msg_forward,
        objc_msg_forward2): Declarations moved to objc/message.h.  Include
        message.h here.
        * objc/message.h: Added such declarations; updated comments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165236 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-09 Richard Guenther <rguenther@suse.de>
rguenth [Sat, 9 Oct 2010 18:28:16 +0000 (18:28 +0000)]
2010-10-09  Richard Guenther  <rguenther@suse.de>

PR lto/45956
* lto-streamer-in.c (lto_register_var_decl_in_symtab):
Properly check if a decl is an automatic var.

* gcc.dg/lto/20101009-2_0.c: New testcase.
* gcc.dg/lto/20101009-2_1.c: Likewise.
* gcc.dg/lto/20101009-2_2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165235 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-09 Richard Guenther <rguenther@suse.de>
rguenth [Sat, 9 Oct 2010 15:59:50 +0000 (15:59 +0000)]
2010-10-09  Richard Guenther  <rguenther@suse.de>

PR lto/45947
* tree.c (free_lang_data_in_cgraph): Properly walk the varpool.

* g++.dg/lto/20101009-1_0.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165234 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
froydnj [Sat, 9 Oct 2010 14:22:30 +0000 (14:22 +0000)]
* config/mmix/mmix-protos.h (mmix_function_arg): Delete.
* config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
* config/mmix/mmix.c (mmix_function_arg): Rename to...
(mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
bool arguments.
(mmix_function_arg): New function.
(mmix_function_incoming_arg): New function.
(mmix_function_arg_advance): New function.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
(TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165230 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
froydnj [Sat, 9 Oct 2010 14:21:47 +0000 (14:21 +0000)]
* config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
* config/vax/vax.c (vax_function_arg): New function.
(vax_function_arg_advance): New function.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165229 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/pa/pa-protos.h (function_arg): Delete.
froydnj [Sat, 9 Oct 2010 14:21:10 +0000 (14:21 +0000)]
* config/pa/pa-protos.h (function_arg): Delete.
* config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
* config/pa/pa.c (function_arg): Rename to...
(pa_function_arg): ...this.  Make static.  Take a const_tree and
a bool.
(pa_function_arg_advance): New function.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165228 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
froydnj [Sat, 9 Oct 2010 14:20:08 +0000 (14:20 +0000)]
* config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
* config/m68k/m68k.c (m68k_function_arg): New function.
(m68k_function_arg_advance): New function.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165227 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/avr/avr-protos.h (function_arg): Delete.
froydnj [Sat, 9 Oct 2010 14:18:51 +0000 (14:18 +0000)]
* config/avr/avr-protos.h (function_arg): Delete.
(function_arg_advance): Delete.
* config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
* config/avr/avr.c (function_arg): Rename to...
(avr_function_arg): ...this.  Make static.  Take a const_tree and
a bool.
(function_arg_advance): Rename to...
(avr_function_arg_advance): ...this.  Make static.  Take a
const_tree and a bool.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165226 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/alpha/alpha-protos.h (function_arg): Delete.
froydnj [Sat, 9 Oct 2010 14:17:48 +0000 (14:17 +0000)]
* config/alpha/alpha-protos.h (function_arg): Delete.
* config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
* config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
* config/alpha/alpha.c (function_arg): Rename to...
(alpha_function_arg): ...this.  Make static.  Take a const_tree and
a bool.  Delete TARGET_ABI_UNICOSMK code.
(alpha_function_arg_advance): New function.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165225 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * config/mep/mep-protos.h (mep_function_arg): Delete.
froydnj [Sat, 9 Oct 2010 14:16:42 +0000 (14:16 +0000)]
* config/mep/mep-protos.h (mep_function_arg): Delete.
(mep_function_arg_advance): Delete.
* config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
* config/mep/mep.c (mep_function_arg): Make static.  Take a
const_tree and a bool.
(mep_function_arg_advance): Likewise.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165224 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2010-10-09 Richard Guenther <rguenther@suse.de>
rguenth [Sat, 9 Oct 2010 12:45:09 +0000 (12:45 +0000)]
2010-10-09  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/45945
* tree-ssa.c (execute_update_addresses_taken): Fixup LHS
scanning.

* gcc.dg/lto/20101009-1_0.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165222 138bc75d-0d04-0410-961f-82ee72b054a4