platform/upstream/gcc.git
14 years agore PR c++/3187 (gcc lays down two copies of constructors)
Jakub Jelinek [Tue, 1 Dec 2009 20:09:37 +0000 (21:09 +0100)]
re PR c++/3187 (gcc lays down two copies of constructors)

PR c++/3187
* optimize.c (cdtor_comdat_group): New function.
(maybe_clone_body): Also optimize DECL_COMDAT base/complete cdtors
and in that case put also the deleting dtor in the same comdat group
as base and complete dtor if dtor is virtual.

From-SVN: r154880

14 years agore PR debug/42234 (internal compiler error: verify_ssa failed)
Jakub Jelinek [Tue, 1 Dec 2009 19:41:52 +0000 (20:41 +0100)]
re PR debug/42234 (internal compiler error: verify_ssa failed)

PR c++/42234
* tree-cfgcleanup.c (cleanup_omp_return): Don't ICE if control_bb
contains no statements.

* g++.dg/gomp/pr42234.C: New test.

From-SVN: r154878

14 years agocgraphunit.c (plugin.h): Include.
Grigori Fursin [Tue, 1 Dec 2009 19:12:29 +0000 (20:12 +0100)]
cgraphunit.c (plugin.h): Include.

2009-12-01  Grigori Fursin  <grigori.fursin@inria.fr>
            Joern Rennecke  <amylaar@spamcop.net>

        * cgraphunit.c (plugin.h): Include.
        (ipa_passes): Invoke PLUGIN_ALL_IPA_PASSES_START /
        PLUGIN_ALL_IPA_PASSES_END at start / end of processing.
        * gcc-plugin.h (highlev-plugin-common.h, hashtab.h): Include.
        (enum plugin_event): Define by including plugin.def.
        Last enumerator is now called PLUGIN_EVENT_FIRST_DYNAMIC.
        (plugin_event_name): Change type to const char **.
        (get_event_last, get_named_event_id, unregister_callback): Declare.
        (register_callback): Change type of event argument to int.
        (highlev-plugin-common.h): New file.
        * Makefile.in (GCC_PLUGIN_H): Add highlev-plugin-common.h and
        $(HASHTAB_H)
        (tree-optimize.o passes.o): Depend on $(PLUGIN_H).
        (PLUGIN_HEADERS): Add opts.h, $(PARAMS_H) and plugin.def.
        (s-header-vars): New rule.
        (install-plugin): Depend on s-header-vars.  Install b-header-vars.
        * params.c (get_num_compiler_params): New function.
        * params.h (get_num_compiler_params): Declare.
        * passes.c (plugin.h): Include.
        (make_pass_instance): Invoke PLUGIN_NEW_PASS.
        (do_per_function_toporder, pass_init_dump_file): No longer static.
        (pass_fini_dump_file): Likewise.
        (execute_one_pass): Likewise.  Invoke PLUGIN_OVERRIDE_GATE and
        PLUGIN_PASS_EXECUTION.
        (execute_ipa_pass_list): Invoke PLUGIN_EARLY_GIMPLE_PASSES_START and
        PLUGIN_EARLY_GIMPLE_PASSES_END.
        * plugin.c (plugin_event_name_init): New array, defined by
        including plugin.def.
        (FMT_FOR_PLUGIN_EVENT): Update.
        (plugin_event_name): Change type to const char ** and initialize
        to plugin_event_name_init.
        (event_tab, event_last, event_horizon): New variable.
        (get_event_last): New function.
        (plugin_callbacks_init): New array.
        (plugin_callbacks: Change type to struct callback_info **.
        Initialize to plugin_callbacks_init.
        (htab_event_eq, get_named_event_id, unregister_callback): New function.
        (invoke_plugin_va_callbacks): Likewise.
        (register_callback): Change type of event argument to int.
        Handle new events.  Allow dynamic events.
        (invoke_plugin_callbacks): Likewise.  Return success status.
        (plugins_active_p): Allow dynamic callbacks.
        * plugin.def: New file.
        * plugin.h (invoke_plugin_callbacks): Update prototype.
        (invoke_plugin_va_callbacks): Declare.
        * tree-optimize.c (plugin.h): Include.
        (tree_rest_of_compilation): Invoke PLUGIN_ALL_PASSES_START and
        PLUGIN_ALL_PASSES_END.
        * tree-pass.h (execute_one_pass, pass_init_dump_file): Declare.
        (pass_fini_dump_file, do_per_function_toporder): Likewise.
        * doc/plugin.texi: Document new event types.

Co-Authored-By: Joern Rennecke <amylaar@spamcop.net>
From-SVN: r154877

14 years agoPR fortran/42131 Sign test using ternary operator
Janne Blomqvist [Tue, 1 Dec 2009 18:32:37 +0000 (20:32 +0200)]
PR fortran/42131 Sign test using ternary operator

From-SVN: r154876

14 years agore PR tree-optimization/42237 (internal compiler error: verify_stmts failed)
Martin Jambor [Tue, 1 Dec 2009 17:39:44 +0000 (18:39 +0100)]
re PR tree-optimization/42237 (internal compiler error: verify_stmts failed)

2009-12-01  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/42237
* tree-sra.c (sra_ipa_modify_assign): Split gimple_reg_type assignments
in between references into two.

* testsuite/gcc.c-torture/compile/pr42237.c: New test.

From-SVN: r154874

14 years agotree-inline.c (copy_tree_body_r): Do not set TREE_BLOCK to the block of the call...
Richard Guenther [Tue, 1 Dec 2009 14:22:50 +0000 (14:22 +0000)]
tree-inline.c (copy_tree_body_r): Do not set TREE_BLOCK to the block of the call when remapping a type.

2009-12-01  Richard Guenther  <rguenther@suse.de>

* tree-inline.c (copy_tree_body_r): Do not set TREE_BLOCK
to the block of the call when remapping a type.

From-SVN: r154873

14 years agocgraph.h (struct cgraph_edge): Reorder fields.
Martin Jambor [Tue, 1 Dec 2009 10:51:07 +0000 (11:51 +0100)]
cgraph.h (struct cgraph_edge): Reorder fields.

2009-12-01  Martin Jambor  <mjambor@suse.cz>

        * cgraph.h (struct cgraph_edge): Reorder fields.  Make loop_nest
unsigned short int.
* ipa-prop.h (struct ipa_param_call_note): Likewise.
* ipa-prop.c (ipa_note_param_call): Initialize note->loop_nest.

From-SVN: r154872

14 years agos-osprim-mingw.adb (Get_Base_Time): Make sure that the base time is taken at a clock...
Pascal Obry [Tue, 1 Dec 2009 10:29:57 +0000 (10:29 +0000)]
s-osprim-mingw.adb (Get_Base_Time): Make sure that the base time is taken at a clock tick boundary.

2009-12-01  Pascal Obry  <obry@adacore.com>

* s-osprim-mingw.adb (Get_Base_Time): Make sure that the base time is
taken at a clock tick boundary.

From-SVN: r154871

14 years ago[multiple changes]
Arnaud Charlet [Tue, 1 Dec 2009 10:24:39 +0000 (11:24 +0100)]
[multiple changes]

2009-12-01  Thomas Quinot  <quinot@adacore.com>

* g-sechas.ads (GNAT.Secure_Hashes.H."=" on Context): Make abstract.

2009-12-01  Matthew Gingell  <gingell@adacore.com>

* adadecode.c: Allow compilation when building the run time in the gnat
runtime.
(__gnat_decode): Strip the .nnnn suffix from names of nested functions.

* gcc-interface/Makefile.in: Ada adadecode to LIBGNAT_SRCS and
LIBGNAT_OBJS.

2009-12-01  Vincent Celier  <celier@adacore.com>

* gnatcmd.adb (Check_Files): Quote the path names as they may include
spaces.

2009-12-01  Ed Schonberg  <schonberg@adacore.com>

* sem_ch3.adb (Analyze_Object_Declaration): If the defining identifier
has already been declared, it may have been rewritten as a renaming
declaration.

From-SVN: r154870

14 years agofinal.c (rest_of_clean_state): If -fcompare-debug is given dump final insns without...
Richard Guenther [Tue, 1 Dec 2009 10:02:24 +0000 (10:02 +0000)]
final.c (rest_of_clean_state): If -fcompare-debug is given dump final insns without UIDs.

2009-12-01  Richard Guenther  <rguenther@suse.de>

* final.c (rest_of_clean_state): If -fcompare-debug is
given dump final insns without UIDs.
* tree-ssa-live.c (remove_unused_scope_block_p): Remove
after_inlining checks.

From-SVN: r154869

14 years ago[multiple changes]
Arnaud Charlet [Tue, 1 Dec 2009 09:52:51 +0000 (10:52 +0100)]
[multiple changes]

2009-12-01  Ed Schonberg  <schonberg@adacore.com>

* einfo.ads: Clarify use of Is_Private_Primitive.
* sem_ch6.adb (Analyze_Subprogram_Declaration): An operation is a
private primitive operation only if it is declared in the scope of the
private controlling type.
* exp_ch9.adb (Build_Wrapper_Spec): Build wrappers for private
protected operations as well.

2009-12-01  Arnaud Charlet  <charlet@adacore.com>

* gnat1drv.adb (Adjust_Global_Switches): Disable front-end
optimizations in CodePeer mode, to keep the tree as close to the source
code as possible, and also to avoid inconsistencies between trees when
using different optimization switches.

2009-12-01  Thomas Quinot  <quinot@adacore.com>

* scos.ads: Updated specification of source coverage obligation
information.

2009-12-01  Thomas Quinot  <quinot@adacore.com>

* g-sercom.ads, g-sercom-mingw.adb, g-sercom-linux.adb,
a-ststio.adb, s-commun.adb, s-commun.ads, g-socket.adb,
g-socket.ads (System.Communications.Last_Index): For the case where no
element has been transferred and Item'First =
Stream_Element_Offset'First, raise CONSTRAINT_ERROR.

2009-12-01  Ed Schonberg  <schonberg@adacore.com>

* sem_ch10.adb (Install_Siblings): A private with_clause on some child
unit U in an ancestor of the current unit must be ignored if the
current unit has a regular with_clause on U.

From-SVN: r154868

14 years agore PR c++/42057 (ICE with invalid parameter of virtual function)
Paolo Carlini [Tue, 1 Dec 2009 09:19:47 +0000 (09:19 +0000)]
re PR c++/42057 (ICE with invalid parameter of virtual function)

2009-12-01  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/42057
* g++.dg/parse/crash54.C: New.

From-SVN: r154865

14 years agodsp-lhx.c: New test.
Chao-ying Fu [Tue, 1 Dec 2009 01:40:28 +0000 (01:40 +0000)]
dsp-lhx.c: New test.

2009-11-30  Chao-ying Fu  <fu@mips.com>

* gcc.target/mips/dsp-lhx.c: New test.
* gcc.target/mips/dsp-no-lhx.c: New test.

From-SVN: r154862

14 years agomips-dsp.md (mips_lhx_<mode>): Use sign_extend.
Chao-ying Fu [Tue, 1 Dec 2009 01:37:52 +0000 (01:37 +0000)]
mips-dsp.md (mips_lhx_<mode>): Use sign_extend.

2009-11-30  Chao-ying Fu  <fu@mips.com>

* config/mips/mips-dsp.md (mips_lhx_<mode>): Use sign_extend.

From-SVN: r154861

14 years agoDaily bump.
GCC Administrator [Tue, 1 Dec 2009 00:16:42 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r154859

14 years agolibstdc++.exp (libstdc++_init): Add host-dependent settings for LC_ALL and LANG.
Dave Korn [Tue, 1 Dec 2009 00:09:30 +0000 (00:09 +0000)]
libstdc++.exp (libstdc++_init): Add host-dependent settings for LC_ALL and LANG.

2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>

* testsuite/lib/libstdc++.exp (libstdc++_init): Add host-dependent
settings for LC_ALL and LANG.

From-SVN: r154856

14 years agore PR libffi/35484 (libffi doesn't support AIX 64bit)
David Edelsohn [Mon, 30 Nov 2009 23:34:33 +0000 (23:34 +0000)]
re PR libffi/35484 (libffi doesn't support AIX 64bit)

2009-11-30  David Edelsohn  <edelsohn@gnu.org>

        PR target/35484
        * src/powerpc/ffitarget.h (POWERPC64): Define for PPC64 Linux and
        AIX64.
        * src/powerpc/aix.S: Implement AIX64 version.
        * src/powerpc/aix_closure.S: Implement AIX64 version.
        (ffi_closure_ASM): Use extsb, lha and displament addresses.
        * src/powerpc/ffi_darwin.c (ffi_prep_args): Implement AIX64
        support.
        (ffi_prep_cif_machdep): Same.
        (ffi_call): Same.
        (ffi_closure_helper_DARWIN): Same.

From-SVN: r154855

14 years agolibgomp.exp (libgomp_init): Add host-dependent settings for LC_ALL and LANG.
Dave Korn [Mon, 30 Nov 2009 23:30:57 +0000 (23:30 +0000)]
libgomp.exp (libgomp_init): Add host-dependent settings for LC_ALL and LANG.

libgomp/ChangeLog

2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>

* testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
settings for LC_ALL and LANG.

gcc/testsuite/ChangeLog

2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>

* lib/g++.exp (g++_init): Add host-dependent settings for
LC_ALL and LANG.
* lib/gcc-dg.exp: Likewise.
* lib/options.exp: Likewise.
* lib/objc.exp (objc_init): Likewise.
* lib/gfortran.exp (gfortran_init): Likewise.

libjava/ChangeLog

2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>

* testsuite/lib/libjava.exp (libjava_init):  Add host-dependent
settings for LC_ALL and LANG.

From-SVN: r154854

14 years agoconfigure.ac (USE_CYGWIN_LIBSTDCXX_WRAPPERS): Define to reflect status of AC_CHECK_FU...
Dave Korn [Mon, 30 Nov 2009 23:22:04 +0000 (23:22 +0000)]
configure.ac (USE_CYGWIN_LIBSTDCXX_WRAPPERS): Define to reflect status of AC_CHECK_FUNC for Cygwin DLL libstdc++ support wrappers.

gcc/ChangeLog:

2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>

* configure.ac (USE_CYGWIN_LIBSTDCXX_WRAPPERS): Define to reflect
status of AC_CHECK_FUNC for Cygwin DLL libstdc++ support wrappers.
* configure: Regenerate.
* config.in: Regenerate.

* config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Define list of --wrap
options for Cygwin DLL libstdc++ support wrappers.
(CXX_WRAP_SPEC_OPT): Define spec to use wrappers or not by default
according to defined value of USE_CYGWIN_LIBSTDCXX_WRAPPERS.
(CXX_WRAP_SPEC): Define entire wrapper spec in or out according to
whether USE_CYGWIN_LIBSTDCXX_WRAPPERS is even defined or not.
(LINK_SPEC): Include CXX_WRAP_SPEC.
* gcc/config/i386/winnt.c (wrapper_strcmp): New qsort helper function.
(i386_find_on_wrapper_list): Check if a function is found on the list
of libstdc++ wrapper options.
(i386_pe_file_end): If we are importing a wrapped function, also emit
an external declaration for the real version.
* config/i386/cygming.opt (muse-libstdc-wrappers): New option for
Cygwin targets. Update copyright year.

libstdc++-v3/ChangeLog:

2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>

* libstdc++-v3/acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Don't disable
on PE targets.
* libstdc++-v3/configure: Regenerate.
* libstdc++-v3/configure.host: Add libtool DLL options for Cygwin
and MinGW platforms.

* libstdc++-v3/include/bits/c++config (_GLIBCXX_VISIBILITY_ATTR): On
platforms that don't support visibility, allow them to declare a macro
_GLIBCXX_PSEUDO_VISIBILITY that is applied in place of visibility.
(_GLIBCXX_PSEUDO_VISIBILITY): Supply empty default if not declared by
CPU- or OS-specific headers.

* libstdc++-v3/config/os/newlib/os_defines.h
(_GLIBCXX_PSEUDO_VISIBILITY_default): New macro for dllimport.
(_GLIBCXX_PSEUDO_VISIBILITY_hidden): New empty macro.
(_GLIBCXX_PSEUDO_VISIBILITY): Evaluate to one of the above.
* libstdc++-v3/config/os/mingw32/os_defines.h
(_GLIBCXX_PSEUDO_VISIBILITY_default,
_GLIBCXX_PSEUDO_VISIBILITY_hidden,
_GLIBCXX_PSEUDO_VISIBILITY): Likewise.

From-SVN: r154853

14 years agore PR c++/40371 (ICE with template operator)
Paolo Carlini [Mon, 30 Nov 2009 22:45:06 +0000 (22:45 +0000)]
re PR c++/40371 (ICE with template operator)

cp/
2009-11-30  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/40371
* call.c (add_template_candidate_real): Early return NULL if
the arglist length is smaller than skip_without_in_chrg; tidy.

testsuite/
2009-11-30  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/40371
* g++.dg/template/crash93.C: New.

From-SVN: r154852

14 years agoCorrect testcase
Alexander Monakov [Mon, 30 Nov 2009 22:08:35 +0000 (01:08 +0300)]
Correct testcase

2009-11-29  Alexander Monakov <amonakov@gcc.gnu.org>

* testsuite/g++.dg/graphite/pr42130.C: Correct testcase.

From-SVN: r154851

14 years agoFix comments.
Tobias Grosser [Mon, 30 Nov 2009 22:08:16 +0000 (22:08 +0000)]
Fix comments.

2009-11-24  Tobias Grosser  <grosser@fim.uni-passau.de>

* graphite-clast-to-gimple.c (try_mark_loop_parallel,
graphite_create_new_loop_guard, translate_clast_for): Fix comments.

From-SVN: r154850

14 years agoProtect loops that might be executed zero times.
Tobias Grosser [Mon, 30 Nov 2009 22:07:59 +0000 (22:07 +0000)]
Protect loops that might be executed zero times.

2009-11-23  Tobias Grosser  <grosser@fim.uni-passau.de>

PR middle-end/42130
* graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
translate_clast_for_loop): New.
(translate_clast_for): Add a condition around the loop, to do not
execute loops with zero iterations.
* testsuite/g++.dg/graphite/pr42130.C: New.
* testsuite/gcc.dg/graphite/pr35356-2.c: Adapt.

From-SVN: r154849

14 years agoRemove context_loop and level from translate_clast_* methods.
Tobias Grosser [Mon, 30 Nov 2009 22:07:38 +0000 (22:07 +0000)]
Remove context_loop and level from translate_clast_* methods.

2009-11-23  Tobias Grosser  <grosser@fim.uni-passau.de>

* graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
(translate_clast_for, translate_clast_guard, translate_clast, gloog):
Remove context_loop and level.

From-SVN: r154848

14 years agoSimplify translate_clast_* methods
Tobias Grosser [Mon, 30 Nov 2009 22:07:18 +0000 (22:07 +0000)]
Simplify translate_clast_* methods

2009-11-23  Tobias Grosser  <grosser@fim.uni-passau.de>

* graphite-clast-to-gimple.c (translate_clast_user,
translate_clast_for, translate_clast_guard): Simplify and move common
elements to translate_clast().
(translate_clast): Simplify and get common elements.

From-SVN: r154847

14 years agopr41551.c: New test.
Steve Ellcey [Mon, 30 Nov 2009 22:06:58 +0000 (22:06 +0000)]
pr41551.c: New test.

2009-11-30  Steve Ellcey  <sje@cup.hp.com>

* gcc.dg/pr41551.c: New test.

From-SVN: r154846

14 years agosplit translate_clast into single methods
Tobias Grosser [Mon, 30 Nov 2009 22:06:54 +0000 (22:06 +0000)]
split translate_clast into single methods

2009-11-23  Tobias Grosser  <grosser@fim.uni-passau.de>

* graphite-clast-to-gimple.c (translate_clast_user,
translate_clast_for, translate_clast_guard): Split out of
translate_clast.

From-SVN: r154845

14 years agoDo not abuse sese for codegeneration
Tobias Grosser [Mon, 30 Nov 2009 22:06:27 +0000 (22:06 +0000)]
Do not abuse sese for codegeneration

CLooG automatically frees the names list, so sharing SESE_PARAMS_NAMES
between gloog() and debug_generated_program() leads to freeing them
twice. As both SESE_PARAM_NAMES and SESE_PARAMS_INDEX are code
generation data structures remove them and the functions working on them
from sese.h and put them in clast-to-gimple.

2009-11-21  Tobias Grosser  <grosser@fim.uni-passau.de>

* graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index,
clast_name_to_index, save_clast_name_index, debug_clast_name_index,
debug_clast_name_indexes_1, debug_clast_name_indexes,
clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h.
(clast_name_to_gcc, clast_to_gcc_expression,
clast_to_gcc_expression_red, gcc_type_for_clast_expr,
gcc_type_for_clast_eq, graphite_translate_clast_equation,
graphite_create_guard_cond_expr, graphite_create_new_loop,
translate_clast): Add params_index.
(initialize_cloog_names): Create parameter strings from scratch, do
not reference other strings.
(create_params_index): New.
(gloog): Initialize params_index.
* graphite-scop-detection (free_scops_1): Removed.
(limit_scops): Use normal free_scops.
* graphite-sese-to-poly.c (save_var_names): Removed.
(parameter_index_in_region): Do not initialize SESE_PARAM_NAMES
and SESE_PARAMS_INDEX.
* sese.c (new_sese, free_sese): Dito.
* sese.h (struct sese): Remove params_index, params_names.
(SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed.

From-SVN: r154844

14 years agofunction.c (instantiate_virtual_regs_in_insn): Copy to new reg before forcing mode.
Steve Ellcey [Mon, 30 Nov 2009 22:06:19 +0000 (22:06 +0000)]
function.c (instantiate_virtual_regs_in_insn): Copy to new reg before forcing mode.

2009-11-30  Steve Ellcey  <sje@cup.hp.com>
    Jakub Jelinek <jakub@redhat.com>

* function.c (instantiate_virtual_regs_in_insn): Copy to new reg
before forcing mode.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r154843

14 years agosh.c (sh_promote_prototypes): Make static.
Anatoly Sokolov [Mon, 30 Nov 2009 21:38:46 +0000 (00:38 +0300)]
sh.c (sh_promote_prototypes): Make static.

* config/sh/sh.c (sh_promote_prototypes): Make static.
(sh_function_value, sh_libcall_value, sh_function_value_regno_p): New
functions.
(TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
* config/sh/sh.h: (FUNCTION_VALUE_REGNO_P): Redefine, use
sh_function_value_regno_p.
(FUNCTION_VALUE, LIBCALL_VALUE): Remove.
* config/sh/sh-protos.h (sh_function_value_regno_p): Declare.
(sh_promote_prototypes) : Remove.

From-SVN: r154842

14 years agos-oscons-tmplt.c: Only define _XOPEN5, IOV_MAX if _XOPEN_IOV_MAX is defined.
Rainer Orth [Mon, 30 Nov 2009 21:12:13 +0000 (21:12 +0000)]
s-oscons-tmplt.c: Only define _XOPEN5, IOV_MAX if _XOPEN_IOV_MAX is defined.

* s-oscons-tmplt.c [__mips && __sgi]: Only define _XOPEN5, IOV_MAX
if _XOPEN_IOV_MAX is defined.

From-SVN: r154841

14 years agobackport: re PR fortran/42053 ([OOP] SELECT TYPE: reject duplicate CLASS IS blocks)
Janus Weil [Mon, 30 Nov 2009 20:43:06 +0000 (21:43 +0100)]
backport: re PR fortran/42053 ([OOP] SELECT TYPE: reject duplicate CLASS IS blocks)

merge from fortran-dev branch:

gcc/fortran/

2009-11-30  Janus Weil  <janus@gcc.gnu.org>

PR fortran/42053
* resolve.c (resolve_select_type): Check for duplicate CLASS IS blocks.

2009-11-30  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41631
* decl.c (gfc_match_derived_decl): Set extension level.
* gfortran.h (symbol_attribute): Expand 'extension' bit field to 8 bit.
* iresolve.c (gfc_resolve_extends_type_of): Return value of
'is_extension_of' has kind=4.
* match.c (select_type_set_tmp,gfc_match_class_is): Create temporary
for CLASS IS blocks.
* module.c (MOD_VERSION): Bump module version.
(ab_attribute,attr_bits): Remove AB_EXTENSION.
(mio_symbol_attribute): Handle expanded 'extension' field.
* resolve.c (resolve_select_type): Implement CLASS IS blocks.
(resolve_fl_variable_derived): Show correct type name.
* symbol.c (gfc_build_class_symbol): Set extension level.

2009-11-30  Janus Weil  <janus@gcc.gnu.org>

* intrinsic.h (gfc_resolve_extends_type_of): Add prototype.
* intrinsic.c (add_functions): Use 'gfc_resolve_extends_type_of'.
* iresolve.c (gfc_resolve_extends_type_of): New function, which
replaces the call to EXTENDS_TYPE_OF by the library function
'is_extension_of' and modifies the arguments.
* trans-intrinsic.c (gfc_conv_extends_type_of): Removed.
(gfc_conv_intrinsic_function): FOR EXTENDS_TYPE_OF, don't call
gfc_conv_extends_type_of but gfc_conv_intrinsic_funcall.

2009-11-30  Paul Thomas  <pault@gcc.gnu.org>
    Janus Weil  <janus@gcc.gnu.org>

* decl.c (encapsulate_class_symbol): Replaced by
'gfc_build_class_symbol'.
(build_sym,build_struct): Call 'gfc_build_class_symbol'.
(gfc_match_derived_decl): Replace vindex by hash_value.
* dump-parse-tree.c (show_symbol): Replace vindex by hash_value.
* gfortran.h (symbol_attribute): Add field 'vtab'.
(gfc_symbol): Replace vindex by hash_value.
(gfc_class_esym_list): Ditto.
(gfc_get_derived_type,gfc_build_class_symbol,gfc_find_derived_vtab):
New prototypes.
* module.c (mio_symbol): Replace vindex by hash_value.
* resolve.c (vindex_expr): Rename to 'hash_value_expr'.
(resolve_class_compcall,resolve_class_typebound_call): Renamed
'vindex_expr'.
(resolve_select_type): Replace $vindex by $vptr->$hash.
* symbol.c (gfc_add_save): Handle vtab symbols.
(gfc_type_compatible): Rewrite.
(gfc_build_class_symbol): New function which replaces
'encapsulate_class_symbol'.
(gfc_find_derived_vtab): New function to set up a vtab symbol for a
derived type.
* trans-decl.c (gfc_create_module_variable): Handle vtab symbols.
* trans-expr.c (select_class_proc): Replace vindex by hash_value.
(gfc_conv_derived_to_class): New function to construct a temporary
CLASS variable from a derived type expression.
(gfc_conv_procedure_call): Call 'gfc_conv_derived_to_class'.
(gfc_conv_structure): Initialize the $extends and $size fields of
vtab symbols.
(gfc_trans_class_assign): Replace $vindex by $vptr. Remove the $size
assignment.
* trans-intrinsic.c (gfc_conv_same_type_as): Replace $vindex by
$vptr->$hash, and replace vindex by hash_value.
* trans-stmt.c (gfc_trans_allocate): Insert $vptr references, replace
$vindex by $vptr. Remove the $size assignment.
* trans-types.c (gfc_get_derived_type): Make it non-static.

gcc/testsuite/

2009-11-30  Janus Weil  <janus@gcc.gnu.org>

PR fortran/42053
* gfortran.dg/select_type_9.f03: New.

2009-11-30  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41631
* gfortran.dg/extends_type_of_1.f03: Fix invalid test case.
* gfortran.dg/module_md5_1.f90: Adjusted MD5 sum.
* gfortran.dg/select_type_1.f03: Remove FIXMEs.
* gfortran.dg/select_type_2.f03: Ditto.
* gfortran.dg/select_type_8.f03: New test.

2009-11-30  Janus Weil  <janus@gcc.gnu.org>

* gfortran.dg/extends_type_of_1.f03: New test.
* gfortran.dg/same_type_as_1.f03: Extended.

2009-11-30  Paul Thomas  <pault@gcc.gnu.org>

* gfortran.dg/class_4c.f03: Add dg-additional-sources.
* gfortran.dg/class_4d.f03: Rename module. Cleanup modules.

libgfortran/

2009-11-30  Janus Weil  <janus@gcc.gnu.org>

* gfortran.map: Add _gfortran_is_extension_of.
* Makefile.am: Add intrinsics/extends_type_of.c.
* Makefile.in: Regenerated.
* intrinsics/extends_type_of.c: New file.

From-SVN: r154840

14 years agore PR fortran/42131 (Weird translation of DO loops)
Thomas Koenig [Mon, 30 Nov 2009 20:35:41 +0000 (20:35 +0000)]
re PR fortran/42131 (Weird translation of DO loops)

2009-11-30  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/42131
* trans-stmt.c (gfc_trans_do):  Calculate loop count
without if statements.

From-SVN: r154839

14 years agoarm.h (PREFERRED_RELOAD_CLASS): Don't restrict Thumb-2 reloads to LO_REGS.
Julian Brown [Mon, 30 Nov 2009 19:40:28 +0000 (19:40 +0000)]
arm.h (PREFERRED_RELOAD_CLASS): Don't restrict Thumb-2 reloads to LO_REGS.

gcc/
* config/arm/arm.h (PREFERRED_RELOAD_CLASS): Don't restrict Thumb-2
reloads to LO_REGS.

From-SVN: r154838

14 years agore PR testsuite/42212 (ERROR: tcl error sourcing /Users/regress/tbox/svn-gcc/gcc...
Janis Johnson [Mon, 30 Nov 2009 19:14:58 +0000 (19:14 +0000)]
re PR testsuite/42212 (ERROR: tcl error sourcing /Users/regress/tbox/svn-gcc/gcc/testsuite/gcc.target/powerpc/powerpc.exp.)

PR testsuite/42212
* gcc.target/powerpc/regnames-1.c: Add missing brace dg-do.

From-SVN: r154837

14 years agoImplement vec_perm broadcast, and tidy lots of patterns to help.
Richard Henderson [Mon, 30 Nov 2009 18:26:55 +0000 (10:26 -0800)]
Implement vec_perm broadcast, and tidy lots of patterns to help.

From-SVN: r154836

14 years agore PR middle-end/42196 (ICE when SRAing partial assigments to complex number)
Martin Jambor [Mon, 30 Nov 2009 17:59:57 +0000 (18:59 +0100)]
re PR middle-end/42196 (ICE when SRAing partial assigments to complex number)

2009-11-30  Martin Jambor  <mjambor@suse.cz>

PR middle-end/42196
* tree-sra.c (struct access): New field grp_different_types.
(dump_access): Dump grp_different_types.
(compare_access_positions): Prefer scalars and vectors over other
scalar types.
(sort_and_splice_var_accesses): Set grp_different_types if appropriate.
(sra_modify_expr): Use the original also when dealing with a complex
 or vector group accessed as multiple types.

* testsuite/gcc.c-torture/compile/pr42196-1.c: New test.
* testsuite/gcc.c-torture/compile/pr42196-2.c: New test.
* testsuite/gcc.c-torture/compile/pr42196-3.c: New test.

From-SVN: r154834

14 years agoi386.c (avx_vperm2f128_parallel): New.
Richard Henderson [Mon, 30 Nov 2009 17:36:07 +0000 (09:36 -0800)]
i386.c (avx_vperm2f128_parallel): New.

        * config/i386/i386.c (avx_vperm2f128_parallel): New.
        * config/i386/i386-protos.h: Declare it.
        * config/i386/predicates.md (avx_vperm2f128_v8sf_operand,
        avx_vperm2f128_v8si_operand, avx_vperm2f128_v4df_operand): New.
        * config/i386/sse.md (avx_vperm2f128<mode>3): Change to expander.
        (*avx_vperm2f128<mode>_full): Renamed from avx_vperm2f128<mode>3.
        (*avx_vperm2f128<mode>_nozero): New.

From-SVN: r154832

14 years agoi386-builtin-types.def (V4DF_FTYPE_V4DF_V4DF_V4DI): New.
Richard Henderson [Mon, 30 Nov 2009 16:56:37 +0000 (08:56 -0800)]
i386-builtin-types.def (V4DF_FTYPE_V4DF_V4DF_V4DI): New.

* config/i386/i386-builtin-types.def (V4DF_FTYPE_V4DF_V4DF_V4DI): New.
(V8SF_FTYPE_V8SF_V8SF_V8SI): New.
* config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Support
V4DF and V8SF for AVX; relax constraint on V4SF to SSE1 from SSE2.
(IX86_BUILTIN_VEC_PERM_V4DF, IX86_BUILTIN_VEC_PERM_V8SF): New.
(bdesc_args): Add them.
(ix86_expand_builtin): Expand them.
(expand_vec_perm_pshufb2): Only operate on 16-byte vectors.

From-SVN: r154831

14 years agolargefile.m4 (ACX_LARGEFILE): Require AC_CANONICAL_HOST and AC_CANONICAL_TARGET.
Joseph Myers [Mon, 30 Nov 2009 16:38:14 +0000 (16:38 +0000)]
largefile.m4 (ACX_LARGEFILE): Require AC_CANONICAL_HOST and AC_CANONICAL_TARGET.

* largefile.m4 (ACX_LARGEFILE): Require AC_CANONICAL_HOST and
AC_CANONICAL_TARGET.

From-SVN: r154830

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 16:31:31 +0000 (17:31 +0100)]
[multiple changes]

2009-11-30  Vasiliy Fofanov  <fofanov@adacore.com>

* vms_data.ads: Add new VMS qualifiers,
REVERSE_BIT_ORDER/NOREVERSE_BIT_ORDER, to support warnings on bit order
effects.

2009-11-30  Thomas Quinot  <quinot@adacore.com>

* exp_ch9.adb, exp_ch9.ads, sem_util.ads: Minor reformatting.

2009-11-30  Gary Dismukes  <dismukes@adacore.com>

* sem_prag.adb: Fix spelling error.

From-SVN: r154829

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 16:24:37 +0000 (17:24 +0100)]
[multiple changes]

2009-11-30  Ed Schonberg  <schonberg@adacore.com>

* exp_ch9.ads (Build_Private_Protected_Declaration): For a protected
operation that is only declared in a protected body, create a
corresponding subprogram declaration.
* exp_ch9.adb (Expand_N_Protected_Body): Create protected body of
operation in all cases, including for an operation that is only
declared in the body.
* sem_ch6.adb: Call Build_Private_Protected_Declaration
* exp_ch6.adb (Expand_N_Subprogram_Declaration): For an operation
declared in a protected body, create the declaration for the
corresponding protected version of the operation.

2009-11-30  Arnaud Charlet  <charlet@adacore.com>

* gnat1drv.adb (Adjust_Global_Switches): Disable specific expansions
for Restrictions pragmas, to avoid tree inconsistencies between
compilations with different pragmas.

2009-11-30  Jerome Lambourg  <lambourg@adacore.com>

* sem_prag.adb (Check_Duplicated_Export_Name): Allow entities exported
to CIL to have duplicated export name.

From-SVN: r154828

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 16:21:19 +0000 (17:21 +0100)]
[multiple changes]

2009-11-30  Robert Dewar  <dewar@adacore.com>

* a-tiinio.adb: Remove extraneous pragma Warnings (Off).

2009-11-30  Thomas Quinot  <quinot@adacore.com>

* par_sco.adb: Minor reformatting

2009-11-30  Ed Falis  <falis@adacore.com>

* s-vxwext.ad[s,b], system-vxworks-ppc.ads, s-stchop-vxworks.adb:
Comment update.

From-SVN: r154827

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 16:16:55 +0000 (17:16 +0100)]
[multiple changes]

2009-11-30  Ed Schonberg  <schonberg@adacore.com>

* par_sco.adb (Traverse_Handled_Statement_Sequence): Do not emit SCO's
for null statements that do not come from source.
* sinfo.ads: Clarify documentation of Comes_From_Source

2009-11-30  Vincent Celier  <celier@adacore.com>

* prj-nmsc.adb (Add_Source): Use Display_Name for both projects when
displaying the paths in error message.

2009-11-30  Emmanuel Briot  <briot@adacore.com>

* adaint.h, adaint.c (file_attributes): force the use of unsigned char.
  On some platforms, "char" is signed, on others unsigned, so we
  explicitly specify the one we expect

From-SVN: r154826

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 16:08:37 +0000 (17:08 +0100)]
[multiple changes]

2009-11-30  Matthew Heaney  <heaney@adacore.com>

* a-coinve.adb (Insert): Move exception handler closer to point where
exception can occur.
Minor reformatting & comment additions.

2009-11-30  Arnaud Charlet  <charlet@adacore.com>

* freeze.adb (Freeze_Entity): Disable warning on 'Foreign caller must
pass bounds' for VM targets, not relevant.

2009-11-30  Robert Dewar  <dewar@adacore.com>

* sem_util.adb (Wrong_Type): Diagnose additional case of modular
missing parens.
* a-tiinio.adb, a-wtinio.adb, a-ztinio.adb: Minor reformatting

* exp_util.adb (Kill_Dead_Code): Suppress warning for some additional
cases.

* sem_warn.adb (Set_Warning_Flag): Clean up gnatwA list and ensure
completeness.
(Set_Dot_Warning_Flag): Ditto for -gnatw.e
(Set_Dot_Warning_Flag): Implement -gnbatw.v/w.V
* usage.adb: Add lines for -gnatw.v/w.V

2009-11-30  Emmanuel Briot  <briot@adacore.com>

* make.adb (Check_Standard_Library): use Full_Source_Name instead of
direct call to Find_File. The former provides caching of the results, so
might be more efficient
(Start_Compile_If_Necessary): Add comment on possible optimization,
not done for now.

From-SVN: r154825

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 15:56:40 +0000 (16:56 +0100)]
[multiple changes]

2009-11-30  Thomas Quinot  <quinot@adacore.com>

* g-sechas.adb: Minor reformatting

2009-11-30  Matthew Heaney  <heaney@adacore.com>

* a-crbtgo.adb (Delete_Fixup): Add comments explaining why predicates
were removed.
* a-cdlili.adb (Vet): Remove always-true predicates.

From-SVN: r154823

14 years agos-sechas.adb, [...]: Rename System.Secure_Hashes to GNAT.Secure_Hashes.
Thomas Quinot [Mon, 30 Nov 2009 15:51:15 +0000 (15:51 +0000)]
s-sechas.adb, [...]: Rename System.Secure_Hashes to GNAT.Secure_Hashes.

2009-11-30  Thomas Quinot  <quinot@adacore.com>

* s-sechas.adb, s-sechas.ads, s-shshco.adb, s-shshco.ads, s-shsh64.adb,
s-shsh64.ads, s-sehamd.adb, s-sehamd.ads, s-shsh32.adb, s-shsh32.ads,
s-sehash.adb, s-sehash.ads, g-sechas.adb, g-sechas.ads, g-shshco.adb,
g-shshco.ads, g-md5.ads, g-sha256.ads, g-shsh64.adb, g-shsh64.ads,
g-sehamd.adb, g-sehamd.ads, g-sha512.ads, g-sha1.ads, Makefile.rtl,
g-sha224.ads, g-shsh32.adb, g-shsh32.ads, g-sha384.ads, g-sehash.adb,
g-sehash.ads: Rename System.Secure_Hashes to GNAT.Secure_Hashes.

From-SVN: r154822

14 years agore PR middle-end/42206 (ipa-prop.c: use of uninitialised local data)
Martin Jambor [Mon, 30 Nov 2009 15:46:00 +0000 (16:46 +0100)]
re PR middle-end/42206 (ipa-prop.c: use of uninitialised local data)

2009-11-30  Martin Jambor  <mjambor@suse.cz>

PR middle-end/42206
* ipa-prop.c (ipa_write_node_info): Initialize note_count to zero.

From-SVN: r154820

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 15:16:49 +0000 (16:16 +0100)]
[multiple changes]

2009-11-30  Robert Dewar  <dewar@adacore.com>

* osint.ads: Minor comment update.

2009-11-30  Thomas Quinot  <quinot@adacore.com>

* s-sechas.adb: Fix swapping error in previous checkin.
* g-md5.ads, g-sha256.ads, g-sha512.ads, g-sha1.ads, g-sha224.ads,
g-sha384.ads: Add missing documentation.

From-SVN: r154819

14 years ago* ipa-reference.c (propagate): Only dump bitmaps if computed.
Jakub Jelinek [Mon, 30 Nov 2009 15:16:00 +0000 (16:16 +0100)]
* ipa-reference.c (propagate): Only dump bitmaps if computed.

From-SVN: r154818

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 15:10:58 +0000 (16:10 +0100)]
[multiple changes]

2009-11-30  Robert Dewar  <dewar@adacore.com>

* g-sha256.ads, s-sehamd.ads, s-sehamd.adb, g-sha512.ads, g-sha224.ads,
g-sha384.ads: Minor reformatting

2009-11-30  Emmanuel Briot  <briot@adacore.com>

* adaint.h (file_attributes): Reduce size of the structure, so that it
is less costly to store in records.
* makeutl.adb:
(Check_Source_Info_In_ALI): use Full_Source_Name instead of a direct
call to Find_File, since the former provides caching when appropriate,
which limits the number of system calls in some cases.
* osint.ads, prj.ads (Source_Data): do not store directly the timestamp,
but the file attributes since we also need access to the size of the
ALI file to parse it. This gives an opportunity for saving system calls
on Unix systems.

From-SVN: r154817

14 years agosem_prag.adb, [...]: Minor reformatting.
Robert Dewar [Mon, 30 Nov 2009 15:00:17 +0000 (15:00 +0000)]
sem_prag.adb, [...]: Minor reformatting.

2009-11-30  Robert Dewar  <dewar@adacore.com>

* sem_prag.adb, s-sechas.ads, s-sechas.adb: Minor reformatting.

From-SVN: r154816

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 14:57:12 +0000 (15:57 +0100)]
[multiple changes]

2009-11-30  Gary Dismukes  <dismukes@adacore.com>

* sem_prag.adb (Process_Convention): Change formal E to Ent. In the
case where the pragma's entity argument is a renaming, return the
entity denoted by the renaming rather than the renamed entity. Loop
through the homonyms of the original argument entity, rather than the
homonyms of any renamed entity. Correct call to Generate_Entity to
pass the homonym.

2009-11-30  Vincent Celier  <celier@adacore.com>

* impunit.adb: Add packages that were added to the GNAT library:
GNAT.SHA224, GNAT.SHA256, GNAT.SHA384 and GNAT.SHA512.
* s-sechas.adb (Fill_Buffer_Copy): Fixes incorrect slice index

2009-11-30  Robert Dewar  <dewar@adacore.com>

* exp_ch3.adb: Minor reformatting
* g-md5.ads, g-sha1.ads: Add comment.

From-SVN: r154815

14 years agoFix header.
Arnaud Charlet [Mon, 30 Nov 2009 14:51:23 +0000 (15:51 +0100)]
Fix header.

From-SVN: r154814

14 years agoMakefile.in: Remove handling of libgccprefix, no longer needed
Arnaud Charlet [Mon, 30 Nov 2009 14:46:43 +0000 (14:46 +0000)]
Makefile.in: Remove handling of libgccprefix, no longer needed

* gcc-interface/Makefile.in: Remove handling of libgccprefix, no longer
needed

From-SVN: r154813

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 14:45:15 +0000 (15:45 +0100)]
[multiple changes]

2009-11-30  Pascal Obry  <obry@adacore.com>

* expect.c: Fix cast to avoid warnings in x86-64 Windows.

2009-11-30  Thomas Quinot  <quinot@adacore.com>

* gnat_rm.texi, s-sechas.adb, s-sechas.ads, s-shshco.adb,
s-shshco.ads, g-md5.adb, g-md5.ads, g-sha256.ads, s-shsh64.adb,
s-shsh64.ads, s-sehamd.adb, s-sehamd.ads, g-sha512.ads, g-sha1.adb,
g-sha1.ads, Makefile.rtl, g-sha224.ads, g-sha384.ads, s-shsh32.adb,
s-shsh32.ads, s-sehash.adb, s-sehash.ads: Reimplementation of GNAT.MD5
and GNAT.SHA1 to factor shared code and avoid unnecessary stack copies.
Also introduce new functions SHA-{224,256,384,512}

From-SVN: r154812

14 years agore PR tree-optimization/39806 (incorrect pointer hashing in ipa-struct-reorg.c)
Olga Golovanevsky [Mon, 30 Nov 2009 14:42:54 +0000 (14:42 +0000)]
re PR tree-optimization/39806 (incorrect pointer hashing in ipa-struct-reorg.c)

2009-11-30  Olga Golovanevsky  <olga@il.ibm.com>

PR middle-end/39806
* ipa-struct-reorg.c (new_var_eq): Use DECL_UID to hash new variables.
(new_var_hash): Likewise.
(is_in_new_vars_htab): Likewise.
(add_to_new_vars_htab): Likewise.

From-SVN: r154811

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 14:28:21 +0000 (15:28 +0100)]
[multiple changes]

2009-11-30  Jerome Lambourg  <lambourg@adacore.com>

* exp_ch3.adb (Make_Predefined_Primitive_Specs): Improve comment for
the Value_Type case.

2009-11-30  Thomas Quinot  <quinot@adacore.com>

* a-textio.adb: Minor reformatting

2009-11-30  Pascal Obry  <obry@adacore.com>

* adaint.c: Fix bug in passing parameter.
* expect.c: Include io.h to get definition of _open_osfhandle

From-SVN: r154810

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 14:24:04 +0000 (15:24 +0100)]
[multiple changes]

2009-11-30  Javier Miranda  <miranda@adacore.com>

* exp_ch6.adb, sem_scil.adb (Adjust_SCIL_Node): Add missing management
of N_Unchecked_Type_Conversion nodes when searching for SCIL nodes.
(Expand_Call): Adjust decoration of SCIL node associated with relocated
function call.

2009-11-30  Emmanuel Briot  <briot@adacore.com>

* prj-env.adb (Add_To_Source_Path): Preserve casing of directories

2009-11-30  Vincent Celier  <celier@adacore.com>

* opt.ads (No_Split_Units): New flag initialized to False

2009-11-30  Jerome Lambourg  <lambourg@adacore.com>

* exp_ch7.adb (Needs_Finalization): Add comments.
* exp_ch3.adb (Make_Predefined_Primitive_Specs): Improve handling of
CIL Value types.

From-SVN: r154809

14 years agoosint.adb, [...]: Minor reformatting.
Robert Dewar [Mon, 30 Nov 2009 14:19:48 +0000 (14:19 +0000)]
osint.adb, [...]: Minor reformatting.

2009-11-30  Robert Dewar  <dewar@adacore.com>

* osint.adb, a-rttiev.adb: Minor reformatting.

From-SVN: r154808

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 14:15:51 +0000 (15:15 +0100)]
[multiple changes]

2009-11-30  Robert Dewar  <dewar@adacore.com>

* gnat_rm.texi: Remove list of warning letters, and refer instead to
using gnatmake to get a brief list.

* debug.adb: Document -gnatd.i to disable pragma Warnings
* par-prag.adb, sem_prag.adb: Recognize -gnatd.i to disable Warnings
pragma.
* vms_data.ads: Add /NOWARNINGS_PRAGMS for -gnatd.i

2009-11-30  Geert Bosch  <bosch@adacore.com>

* a-ngelfu.adb (Sin): Correct spelling of sine in comment.

2009-11-30  Vincent Celier  <celier@adacore.com>

* gnatls.adb: Do not call Get_Target_Parameters in Verbose_Mode, as it
is not needed and gnatls fails when called with -v -nostdinc.

2009-11-30  Emmanuel Briot  <briot@adacore.com>

* osint.adb, osint.ads (File_Time_Stamp): new subprogram.

From-SVN: r154807

14 years agounix.c (find_file): Add variable id conditionally for mingw targets.
Kai Tietz [Mon, 30 Nov 2009 14:12:33 +0000 (15:12 +0100)]
unix.c (find_file): Add variable id conditionally for mingw targets.

2009-11-30  Kai Tietz  <Kai.Tietz@onevision.com>

        * io/unix.c (find_file): Add variable id conditionally for
        mingw targets.

From-SVN: r154806

14 years agognat_rm.texi, [...]: Document new syntax for pragma Annotate
Ed Schonberg [Mon, 30 Nov 2009 14:11:59 +0000 (14:11 +0000)]
gnat_rm.texi, [...]: Document new syntax for pragma Annotate

2009-11-30  Ed Schonberg  <schonberg@adacore.com>

* gnat_rm.texi, gnat_ugn.texi: Document new syntax for pragma Annotate

From-SVN: r154805

14 years agoscans.ads (Wide_Wide_Character_Found): New flag
Robert Dewar [Mon, 30 Nov 2009 14:09:30 +0000 (14:09 +0000)]
scans.ads (Wide_Wide_Character_Found): New flag

2009-11-30  Robert Dewar  <dewar@adacore.com>

* scans.ads (Wide_Wide_Character_Found): New flag
* scn.adb (Post_Scan): Set new flag Has_Wide_Wide_Character
* scng.adb (Set_String): Set new flag Wide_Wide_Character_Found
(Set_String): Fix failure to reset Wide_Character_Found
* sinfo.adb (Has_Wide_Wide_Character): New flag in N_String_Literal
* sinfo.ads (Has_Wide_Wide_Character): New flag in N_String_Literal
* a-ngelfu.adb: Minor reformatting & code reorganization.
* usage.adb: Fix typo in -gnatw.W line

From-SVN: r154804

14 years agoosint.adb, [...]: Minor reformatting.
Robert Dewar [Mon, 30 Nov 2009 14:03:03 +0000 (14:03 +0000)]
osint.adb, [...]: Minor reformatting.

2009-11-30  Robert Dewar  <dewar@adacore.com>

* osint.adb, prj-nmsc.adb, sem_prag.adb, sem_util.adb: Minor
reformatting.
* csinfo.adb: Terminate run if improper use of reserved flag
* sinfo.ads, sinfo.adb (Is_Accessibility_Actual): Don't use reserved
Flag12, used Flag13 instead.

From-SVN: r154803

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 13:58:01 +0000 (14:58 +0100)]
[multiple changes]

2009-11-30  Vincent Celier  <celier@adacore.com>

* gnatcmd.adb (Check_Files): Recognize documented switches that have a
separate parameter.

2009-11-30  Robert Dewar  <dewar@adacore.com>

* sem_util.ads: Minor reformatting
* errout.adb: Minor reformatting
Minor code reorganization (use N_Subprogram_Specification to simplify)
* exp_ch7.adb: Add comment.

From-SVN: r154802

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 13:52:35 +0000 (14:52 +0100)]
[multiple changes]

2009-11-30  Thomas Quinot  <quinot@adacore.com>

* put_scos.adb (Put_SCOs): Do not generate a SCO unit header for a unit
that has no SCOs.
* scos.ads: Minor reformatting

2009-11-30  Ed Schonberg  <schonberg@adacore.com>

* sem_prag.adb: Second unanalyzed parameter of Annotate is optional.

2009-11-30  Eric Botcazou  <ebotcazou@adacore.com>

* init.c (__gnat_adjust_context_for_raise, Linux version): Add guard
for null PC saved in the context.

2009-11-30  Hristian Kirtchev  <kirtchev@adacore.com>

* a-calend.adb (Day_Of_Week): Rewritten. The routine determines the
number of days from the Ada Epoch to the input date while ensuring that
both dates are in the same time zone.

From-SVN: r154801

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 13:45:45 +0000 (14:45 +0100)]
[multiple changes]

2009-11-30  Emmanuel Briot  <briot@adacore.com>

* clean.adb ("-eL"): Also set Follow_Links_For_Dirs, to match what is
done in other project-aware tools like gnatmake and gprbuild.

2009-11-30  Jerome Lambourg  <lambourg@adacore.com>

* exp_ch3.adb (Make_Predefined_Primitive_Specs): Take care of CIL
ValueTypes.
* exp_ch7.adb (Needs_Finalization): Do not finalize CIL valuetypes.
* sem_util.adb (Is_Value_Type): Protect against invalid calls to Chars
(Is_Delegate): New method used for CIL.
* sem_util.ads (Is_Delegate): New method for CIL handling.
(Is_Value_Type): Improve documentation.

2009-11-30  Ed Schonberg  <schonberg@adacore.com>

* errout.adb (Unwind_Internal_Type): Improve error reporting if the
type is an anonymous access to subprogram that is the type of a formal
in a subprogram spec.

2009-11-30  Vincent Celier  <celier@adacore.com>

* prj-nmsc.adb (Check_Interfaces): In a Stand-Alone Library project, if
attribute Interfaces is not declared, then Library_Interface should
define the interfaces.

2009-11-30  Ed Schonberg  <schonberg@adacore.com>

* sem_prag.adb: New semantics for Annotate.

From-SVN: r154800

14 years agoMakefile.in: Do not link with -static-libgcc on Darwin.
Tristan Gingold [Mon, 30 Nov 2009 13:42:23 +0000 (13:42 +0000)]
Makefile.in: Do not link with -static-libgcc on Darwin.

2009-11-30  Tristan Gingold  <gingold@adacore.com>

* gcc-interface/Makefile.in: Do not link with -static-libgcc on Darwin.

From-SVN: r154799

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 13:36:29 +0000 (14:36 +0100)]
[multiple changes]

2009-11-30  Emmanuel Briot  <briot@adacore.com>

* gnat_ugn.texi: Extend doc for -eL

2009-11-30  Vincent Celier  <celier@adacore.com>

* osint.adb (Executable_Name (File_Name_Type)): Put the Name in the
Name_Buffer before testing for a dot in the Name.

2009-11-30  Vincent Celier  <celier@adacore.com>

* prj-part.adb (Project_Path_Name_Of): Resolve links for final result
if -eL has been specified.

From-SVN: r154798

14 years ago2009-11-30 Paolo Carlini <paolo.carlini@oracle.com>
Paolo Carlini [Mon, 30 Nov 2009 13:34:25 +0000 (13:34 +0000)]
2009-11-30  Paolo Carlini  <paolo.carlini@oracle.com>

Fix typo in last ChangeLog entry.

From-SVN: r154797

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 13:33:46 +0000 (14:33 +0100)]
[multiple changes]

2009-11-30  Vincent Celier  <celier@adacore.com>

* osint.adb (Executable_Name): Test the name instead of the name buffer
to check if there is a dot in the given name.

2009-11-30  Sergey Rybin  <rybin@adacore.com>

* gnat_ugn.texi: Update gnatcheck doc.

From-SVN: r154796

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 13:29:41 +0000 (14:29 +0100)]
[multiple changes]

2009-11-30  Robert Dewar  <dewar@adacore.com>

* sem_ch3.adb, sem_disp.adb, usage.adb: Minor reformatting

2009-11-30  Vasiliy Fofanov  <fofanov@adacore.com>

* gnat_ugn.texi: Minor editing.

2009-11-30  Emmanuel Briot  <briot@adacore.com>

* prj-nmsc.adb (Search_Directories): when -eL was not specified, assume
that no directory matches the naming scheme for sources.

From-SVN: r154795

14 years agotree-vect-stmts.c (vectorizable_assignment): Support multiple types.
Ira Rosen [Mon, 30 Nov 2009 12:17:43 +0000 (12:17 +0000)]
tree-vect-stmts.c (vectorizable_assignment): Support multiple types.

* tree-vect-stmts.c (vectorizable_assignment): Support
multiple types.

From-SVN: r154794

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 12:02:49 +0000 (13:02 +0100)]
[multiple changes]

2009-11-30  Emmanuel Briot  <briot@adacore.com>

* prj.adb, prj.ads, prj-nmsc.adb (Has_Multi_Unit_Sources): New field in
project_data.

2009-11-30  Vincent Celier  <celier@adacore.com>

* osint.adb (Executable_Name): Correctly decide if the executable
suffix should be added when Only_If_No_Suffix is True.

2009-11-30  Robert Dewar  <dewar@adacore.com>

* frontend.adb, gnatlink.adb, prj-conf.adb, prj-tree.adb,
prj-tree.ads: Minor reformatting

From-SVN: r154793

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 11:55:21 +0000 (12:55 +0100)]
[multiple changes]

2009-11-30  Vincent Celier  <celier@adacore.com>

* gnatlink.adb (Process_Args): Call Executable_Name on argument of -o
with Only_If_No_Suffix set to True.
* osint.adb (Executable_Name): Do not add executable suffix if there is
already a suffix and Only_If_No_Suffix is True.
* osint.ads (Executable_Name): New Boolean parameter Only_If_No_Suffix,
defaulted to False.

2009-11-30  Javier Miranda  <miranda@adacore.com>

* exp_atag.adb (Build_TSD): Change argument name because the actual is
now the address of a tag (instead of the tag). Update implementation
accordingly.
(Build_CW_Membership): New implementation. Converted into a procedure
because it has an additional out mode parameter. Its implementation has
been rewritten to improve the generated code but also to facilitate
referencing the relocated object node in the caller.
* exp_atag.ads (Build_CW_Membership): Update profile and documentation.
* sinfo.ads (N_SCIL_Membership_Test) New_Node.
(SCIL_Tag_Value): New field of N_SCIL_Membership_Test nodes.
(Is_Syntactic_Field): Add entry of new node.
(SCIL_Tag_Value/Set_SCIL_Tag_Value): New subprograms.
* sinfo.adb (SCIL_Related_Node, SCIL_Entity): Update assertions to
handle N_SCIL_Membership_Test nodes.
(SCIL_Tag_Value/Set_SCIL_Tag_Value): New subprograms.
* sem.adb (Analyze): Add null management for new node.
* sem_scil.adb (Find_SCIL_Node): Add null management for new node.
(Check_SCIL_Node): Add checks of N_SCIL_Membership_Test nodes.
* exp_ch4.adb (Tagged_Membership): Change profile from function to
procedure. Add generation of SCIL node associated with class-wide
membership test.
(Expand_N_In): Complete decoration of SCIL nodes.
* exp_intr.adb (Expand_Dispatching_Constructor_Call): Tune call to
Build_CW_Membership because its profile has been changed.
* exp_util.adb (Insert_Actions): Add null management for new node.
* sprint.adb (Sprint_Node_Actual): Handle new node.
* gcc-interface/trans.c Add no processing for N_SCIL_Membership_Test
nodes.
* gcc-interface/Make-lang.in: Update dependencies.

2009-11-30  Ed Schonberg  <schonberg@adacore.com>

* opt.ads: New flags Init_Or_Norm_Scalars_Config,
Initialize_Scalars_Config, to capture the presence of the corresponding
pragmas in a configuration file.
* opt.adb (Register_, Save_, Set_, Restore_Opt_Configuration_Switches):
handle new flags so that they are restored for each compilation unit.
* frontend.adb: At the end of compilation, scan the context of the main
unit to recover occurrences of pragma Initialize_Scalars, to annotate
the ALI file accordingly.

From-SVN: r154792

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 11:41:56 +0000 (12:41 +0100)]
[multiple changes]

2009-11-30  Vincent Celier  <celier@adacore.com>

* prj-tree.ads: Minor comment updates
* prj-tree.adb: Minor reformatting

2009-11-30  Ed Schonberg  <schonberg@adacore.com>

* sem_ch3.adb (Derive_Subprogram): Indicate that an inherited
predefined control operation is hidden if the parent type is not
visibly controlled.
* sem_ch6.adb (Check_Overriding_Indicator): Do not report error if
overridden operation is not visible, as may be the case with predefined
control operations.
* sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on
non-overriding control operation when type is not visibly controlled,
if the subprogram has an explicit overriding indicator.
* sem_util.ads, sem_util.adb (Is_Visibly_Controlled): Moved here from
sem_disp.adb.

From-SVN: r154791

14 years agoprj-tree.adb (Create_Attribute): Fix handling of VMS and Windows
Emmanuel Briot [Mon, 30 Nov 2009 11:38:12 +0000 (11:38 +0000)]
prj-tree.adb (Create_Attribute): Fix handling of VMS and Windows

2009-11-30  Emmanuel Briot  <briot@adacore.com>

* prj-tree.adb (Create_Attribute): Fix handling of VMS and Windows
* prj-attr.ads: Minor comment updates

From-SVN: r154790

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 11:29:28 +0000 (12:29 +0100)]
[multiple changes]

2009-11-30  Robert Dewar  <dewar@adacore.com>

* gnat_rm.texi: Document pragma Short_Circuit

2009-11-30  Emmanuel Briot  <briot@adacore.com>

* prj-conf.adb, prj-tree.adb, prj-tree.ads (Create_Attribute): Now set
the index either on the attribute or on its value, depending on the
kind of the attribute. Done to match recent changes in Prj.PP that were
not synchronized with this function.

From-SVN: r154789

14 years agoUpdate dependencies.
Arnaud Charlet [Mon, 30 Nov 2009 11:25:17 +0000 (11:25 +0000)]
Update dependencies.

From-SVN: r154788

14 years ago* gcc-interface/Make-lang.in: Fix typo.
Arnaud Charlet [Mon, 30 Nov 2009 11:19:02 +0000 (11:19 +0000)]
* gcc-interface/Make-lang.in: Fix typo.

From-SVN: r154787

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 11:15:51 +0000 (12:15 +0100)]
[multiple changes]

2009-11-30  Robert Dewar  <dewar@adacore.com>

* gnat_rm.texi: Add documentation for attribute Result.

2009-11-30  Arnaud Charlet  <charlet@adacore.com>

* s-osinte-hpux.ads, s-osinte-aix.ads, s-osinte-solaris-posix.ads,
s-osinte-tru64.ads, s-osinte-darwin.ads, s-osinte-freebsd.ads
(Get_Page_Size): Update comment since Get_Page_Size is now required.

2009-11-30  Jerome Lambourg  <lambourg@adacore.com>

* freeze.adb: Disable Warning on VM targets concerning C Imports, not
relevant.

2009-11-30  Bob Duff  <duff@adacore.com>

* sprint.adb (Source_Dump): Minor comment fix.
(Write_Itype): When writing a string literal subtype, use Expr_Value
instead of Intval to get the low bound.

2009-11-30  Vincent Celier  <celier@adacore.com>

* gnatlink.adb (Process_Args): Do not call Executable_Name on arguments
of switch -o.

2009-11-30  Robert Dewar  <dewar@adacore.com>

* exp_ch4.adb (Expand_N_Op_And): Implement pragma Short_Circuit_And_Or
(Expand_N_Op_Or): Implement pragma Short_Circuit_And_Or
* opt.ads (Short_Circuit_And_Or): New flag
* par-prag.adb: Add dummy entry for pragma Short_Circuit_And_Or
* sem_prag.adb: Implement pragma Short_Circuit_And_Or
* snames.ads-tmpl: Add entries for pragma Short_Circuit_And_Or

From-SVN: r154786

14 years agocontrib.texi (Contributors): Add myself.
Richard Guenther [Mon, 30 Nov 2009 11:09:29 +0000 (11:09 +0000)]
contrib.texi (Contributors): Add myself.

2009-11-30  Richard Guenther  <rguenther@suse.de>

* doc/contrib.texi (Contributors): Add myself.

From-SVN: r154785

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 11:08:56 +0000 (12:08 +0100)]
[multiple changes]

2009-11-30  Arnaud Charlet  <charlet@adacore.com>

* s-taprop-posix.adb: Fix casing.
* s-osinte-tru64.adb: Complete previous check-in.

2009-11-30  Robert Dewar  <dewar@adacore.com>

* gnat_rm.texi: Document pragma Compiler_Unit
* s-bitops.adb, s-restri.adb, g-htable.adb, s-restri.ads,
a-comlin.ads, a-strhas.ads, s-strhas.adb, s-parame.adb,
s-parame.ads, a-clrefi.adb, a-clrefi.ads, a-ioexce.ads: Supply missing
Compiler_Unit pragmas.
* freeze.adb (Freeze_Entity): Improve message for 8-bit boolean passed
to C.

From-SVN: r154784

14 years agomakeutl.adb, [...]: Minor reformatting.
Robert Dewar [Mon, 30 Nov 2009 11:02:59 +0000 (11:02 +0000)]
makeutl.adb, [...]: Minor reformatting.

2009-11-30  Robert Dewar  <dewar@adacore.com>

* makeutl.adb, makeutl.ads, prj-proc.adb, prj.adb, prj.ads: Minor
reformatting.

From-SVN: r154783

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 10:59:41 +0000 (11:59 +0100)]
[multiple changes]

2009-11-30  Thomas Quinot  <quinot@adacore.com>

* osint.adb: Minor reformatting

2009-11-30  Vincent Celier  <celier@adacore.com>

* makeutl.ads, makeutl.adb (Base_Name_Index_For): New function to get
the base name of a main without the extension, with an eventual source
index.
(Mains.Get_Index): New procedure to set the source index of a main
(Mains.Get_Index): New function to get the source index of a main
* prj-attr.adb: New attributes Config_Body_File_Name_Index,
Config_Spec_File_Name_Index, Multi_Unit_Object_Separator and
Multi_Unit_Switches.
* prj-nmsc.adb (Process_Compiler): Takle into account new attributes
Config_Body_File_Name_Index, Config_Spec_File_Name_Index,
Multi_Unit_Object_Separator and Multi_Unit_Switches.
Allow only one character for Multi_Unit_Object_Separator.
* prj-proc.adb (Process_Declarative_Items): Take into account the
source indexes in indexes of associative array attribute declarations.
* prj.adb (Object_Name): New function to get the object file name for
units in multi-unit sources.
* prj.ads (Language_Config): New components Multi_Unit_Switches,
Multi_Unit_Object_Separator Config_Body_Index and Config_Spec_Index.
(Object_Name): New function to get the object file name for units in
multi-unit sources.
* snames.ads-tmpl: New standard names Config_Body_File_Name_Index,
Config_Spec_File_Name_Index, Multi_Unit_Object_Separator and
Multi_Unit_Switches.

From-SVN: r154782

14 years agotree.c (free_lang_data): Do not set debug_info_level to none if terse.
Richard Guenther [Mon, 30 Nov 2009 10:49:49 +0000 (10:49 +0000)]
tree.c (free_lang_data): Do not set debug_info_level to none if terse.

2009-11-30  Richard Guenther  <rguenther@suse.de>

        * tree.c (free_lang_data): Do not set debug_info_level to
        none if terse.

From-SVN: r154781

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 10:49:27 +0000 (11:49 +0100)]
[multiple changes]

2009-11-30  Arnaud Charlet  <charlet@adacore.com>

* s-tassta.adb: Update comment.

2009-11-30  Robert Dewar  <dewar@adacore.com>

* a-ngelfu.adb: Minor code reorganization.

From-SVN: r154780

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 10:45:39 +0000 (11:45 +0100)]
[multiple changes]

2009-11-30  Robert Dewar  <dewar@adacore.com>

* osint.ads, prj.adb, prj.ads: Minor reformatting
* s-stchop.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
s-taprop-vms.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
s-strxdr.adb, s-taprop-irix.adb,
s-osinte-hpux-dce.adb, s-osinte-tru64.adb, s-taenca.adb,
s-taprop-hpux-dce.adb, s-stausa.adb, s-taprop-posix.adb: Minor code
reorganization (use conditional expressions).

2009-11-30  Bob Duff  <duff@adacore.com>

* g-sttsne-locking.adb (Copy_Service_Entry): Complete previous change.

From-SVN: r154779

14 years agore PR middle-end/42119 (internal compiler error: in expand_expr_addr_expr_1, at expr...
Richard Guenther [Mon, 30 Nov 2009 10:39:36 +0000 (10:39 +0000)]
re PR middle-end/42119 (internal compiler error: in expand_expr_addr_expr_1, at expr.c:6862)

2009-11-30  Richard Guenther  <rguenther@suse.de>

PR middle-end/42119
PR fortran/38530
* expr.c (expand_expr_addr_expr_1): Properly expand the initializer
of CONST_DECLs.

* gfortran.dg/pr42119.f90: New testcase.

From-SVN: r154778

14 years agosocket.c: Add more accessor functions for struct servent (need setters as well as...
Bob Duff [Mon, 30 Nov 2009 10:38:23 +0000 (10:38 +0000)]
socket.c: Add more accessor functions for struct servent (need setters as well as getters).

2009-11-30  Bob Duff  <duff@adacore.com>

* socket.c: Add more accessor functions for struct servent (need
setters as well as getters).
* g-sothco.ads (Servent): Declare interfaces to C setter functions for
struct servent.
* g-sttsne-locking.adb (Copy_Service_Entry): Use setter functions for
struct servent.

From-SVN: r154777

14 years agotree-into-ssa.c (insert_phi_nodes): Add PHI nodes in variable UID order.
Richard Guenther [Mon, 30 Nov 2009 10:38:09 +0000 (10:38 +0000)]
tree-into-ssa.c (insert_phi_nodes): Add PHI nodes in variable UID order.

2009-11-30  Richard Guenther  <rguenther@suse.de>

* tree-into-ssa.c (insert_phi_nodes): Add PHI nodes in
variable UID order.

From-SVN: r154776

14 years agotree-dump.c (dump_option_value_in): Add TDF_NOUID.
Richard Guenther [Mon, 30 Nov 2009 10:36:54 +0000 (10:36 +0000)]
tree-dump.c (dump_option_value_in): Add TDF_NOUID.

2009-11-30  Richard Guenther  <rguenther@suse.de>

* tree-dump.c (dump_option_value_in): Add TDF_NOUID.
* tree-pass.h (TDF_NOUID): Likewise.
* print-rtl.c: Include tree-pass.h.
(print_mem_expr): Pass dump_flags.
(print_rtx): Likewise.
* print-tree.c: Include tree-pass.h.
(print_node_brief): Handle TDF_NOUID.
(print_node): Likewise.
* tree-pretty-print.c (dump_decl_name): Likewise.
(dump_generic_node): Likewise.
* Makefile.in (print-rtl.o, print-tree.o): Add $(TREE_PASS_H)
dependency.

From-SVN: r154775

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 10:34:43 +0000 (11:34 +0100)]
[multiple changes]

2009-11-30  Robert Dewar  <dewar@adacore.com>

* s-stchop-vxworks.adb: Add comment.

2009-11-30  Emmanuel Briot  <briot@adacore.com>

* make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Now acts
on the whole tree, to better share code with gprbuild.
(Length): New subprogram, to share code in gprbuild.
(Project_Data): Remove fields that are only needed when compiling a
  project in gprbuild (where we use local variables instead)
* osint.adb, osint.ads: Added minor comment on memory management

From-SVN: r154774

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 10:28:23 +0000 (11:28 +0100)]
[multiple changes]

2009-11-30  Sergey Rybin  <rybin@adacore.com>

* gnat_ugn.texi: Update gnatcheck doc.

2009-11-30  Robert Dewar  <dewar@adacore.com>

make.adb, prj-makr.adb, g-sothco.ads: Minor reformattting
* s-taprop-dummy.adb: Minor code reorganization (raise with msgs start
with lower case).
* i-vxwoio.adb, g-dirope.adb, g-sercom-linux.adb,
g-enblsp-vms-alpha.adb, g-regist.adb, s-imgcha.adb, s-tarest.adb,
s-taprop-mingw.adb, g-exctra.adb, g-expect.adb, g-comlin.adb,
g-debpoo.adb, g-expect-vms.adb, g-pehage.adb, g-trasym-vms-alpha.adb,
g-enblsp-vms-ia64.adb, s-fatgen.adb, s-fileio.adb: Minor code
reorganization (use conditional expressions).

From-SVN: r154773

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 10:20:47 +0000 (11:20 +0100)]
[multiple changes]

2009-11-30  Vincent Celier  <celier@adacore.com>

* prj-makr.adb (Source_Files): New hash table to keep track of source
file names.
(Finalize): Avoid putting several times the same source file name
in the source list file.
* prj-pp.adb (Print): Fix a bug in the placement of "at nn" for
associative array indexes.

2009-11-30  Robert Dewar  <dewar@adacore.com>

* g-dyntab.ads: Add missing pragma Compiler_Unit

2009-11-30  Thomas Quinot  <quinot@adacore.com>

* s-crtrun.ads, s-crtl.ads, g-stseme.adb, Makefile.rtl, s-fileio.adb
(System.CRTL.Runtime): New unit, to contain parts of s-crtl that are
used in the Ada runtime but can't be used in the compiler because of
bootstrap issues.
* socket.c, s-oscons-tmplt.c, g-sothco.ads
(System.OS_Constants.SIZEOF_struct_servent): New constant.
Use s-oscons constant instead of external variable to get size of
struct hostent.

From-SVN: r154772

14 years agomark_rts.c (GC_approx_sp): Use __builtin_frame_address when compiling with GCC rather...
Ben Elliston [Mon, 30 Nov 2009 10:19:20 +0000 (10:19 +0000)]
mark_rts.c (GC_approx_sp): Use __builtin_frame_address when compiling with GCC rather than taking the...

* mark_rts.c (GC_approx_sp): Use __builtin_frame_address when
compiling with GCC rather than taking the address of a local
variable.

From-SVN: r154771

14 years agostormy16-lib2-count-leading-zeros.c: Delete.
Nick Clifton [Mon, 30 Nov 2009 10:10:52 +0000 (10:10 +0000)]
stormy16-lib2-count-leading-zeros.c: Delete.

        * config/stormy16/stormy16-lib2-count-leading-zeros.c: Delete.
        * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Remove
        stormy16-lib2-count-leading-zeros.c.
        * config/stormy16/stormy16-lib2.c (__clzhi2): Move code from
        __stormy16_count_leading_zeros() into this function.
        (__ctzhi2): Use __builtin_clz.
        (__ffshi2): Likewise.

From-SVN: r154770

14 years ago[multiple changes]
Arnaud Charlet [Mon, 30 Nov 2009 10:07:32 +0000 (11:07 +0100)]
[multiple changes]

2009-11-30  Thomas Quinot  <quinot@adacore.com>

* s-crtl.ads, g-stseme.adb, s-fileio.adb (System.CRTL.strerror): Change
return type to Interfaces.C.Strings.chars_ptr to eliminate need for
dubious unchecked conversion at call sites.
* s-errrep.adb, s-errrep.ads, Makefile.rtl (System.Error_Reporting):
Remove obsolete, unused runtime unit.
* gcc-interface/Make-lang.in: Update dependencies.
* gcc-interface/Makefile.in: Remove VMS specialization of s-crtl, not
required anymore.

2009-11-30  Vincent Celier  <celier@adacore.com>

* gnatlink.adb: Delete an eventual existing executable file, in case it
is a symbolic link, to avoid modifying the target of the symbolic link.

2009-11-30  Bob Duff  <duff@adacore.com>

* socket.c: Add accessor functions for struct servent.
* g-sothco.ads (Servent): Declare interfaces to C accessor functions
for struct servent.
* g-socket.adb (To_Service_Entry): Use accessor functions for struct
servent.

2009-11-30  Robert Dewar  <dewar@adacore.com>

* g-arrspl.adb: Minor reformatting
* g-dyntab.adb: Add missing pragma Compiler_Unit

From-SVN: r154769

14 years agore PR c++/42069 (ICE on class template specialization)
Dodji Seketeli [Mon, 30 Nov 2009 09:58:20 +0000 (09:58 +0000)]
re PR c++/42069 (ICE on class template specialization)

Fix PR c++/42069

gcc/cp/ChangeLog:
PR c++/42069
* pt.c (convert_template_argument): Strip typedefs from SCOPE_REFs.

gcc/testsuite/ChangeLog:
PR c++/42069
* g++.dg/template/typedef23.C: New test.

From-SVN: r154768