gcc.git
15 years agouser.cfg.in (PREDEFINED): Add _GLIBCXX_ATOMIC_BUILTINS_*.
Benjamin Kosnik [Tue, 23 Jun 2009 23:24:20 +0000 (23:24 +0000)]
user.cfg.in (PREDEFINED): Add _GLIBCXX_ATOMIC_BUILTINS_*.

2009-06-23  Benjamin Kosnik  <bkoz@redhat.com>

* doc/doxygen/user.cfg.in (PREDEFINED): Add _GLIBCXX_ATOMIC_BUILTINS_*.
(INPUT): Add future.
* include/std/future: Adjust markup.
* testsuite/30_threads/shared_future/cons/assign_neg.cc: Adjust
line numbers.
* testsuite/30_threads/unique_future/cons/assign_neg.cc: Same.
* testsuite/30_threads/unique_future/cons/copy_neg.cc: Same.
* testsuite/30_threads/promise/cons/assign_neg.cc: Same.
* testsuite/30_threads/promise/cons/copy_neg.cc: Same.

From-SVN: r148883

15 years agoshared_ptr.h: Do not swap rvalues.
Jonathan Wakely [Tue, 23 Jun 2009 22:33:17 +0000 (22:33 +0000)]
shared_ptr.h: Do not swap rvalues.

2009-06-23  Jonathan Wakely  <jwakely.gcc@gmail.com>

* include/bits/shared_ptr.h: Do not swap rvalues.
* testsuite/20_util/owner_less/cmp.cc: Add missing test variables.
* testsuite/20_util/shared_ptr/comparison/cmp.cc: Likewise.
* testsuite/20_util/shared_ptr/comparison/less.cc: Likewise.
* testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.
* testsuite/20_util/tuple/swap.cc: Likewise.

From-SVN: r148880

15 years ago* Makefile.in ($(out_object_file)): Depend upon $(DF_H).
Ian Lance Taylor [Tue, 23 Jun 2009 22:21:10 +0000 (22:21 +0000)]
* Makefile.in ($(out_object_file)): Depend upon $(DF_H).

From-SVN: r148877

15 years agoreload.c (alternative_allows_const_pool_ref): Mark mem parameter with ATTRIBUTE_UNUSED.
Ian Lance Taylor [Tue, 23 Jun 2009 22:11:22 +0000 (22:11 +0000)]
reload.c (alternative_allows_const_pool_ref): Mark mem parameter with ATTRIBUTE_UNUSED.

* reload.c (alternative_allows_const_pool_ref): Mark mem parameter
with ATTRIBUTE_UNUSED.

From-SVN: r148872

15 years agoUpdate comment
Michael Meissner [Tue, 23 Jun 2009 20:21:34 +0000 (20:21 +0000)]
Update comment

From-SVN: r148870

15 years agoStep 1 of VSX changes: Powerpc infrstructure changes
Michael Meissner [Tue, 23 Jun 2009 20:15:15 +0000 (20:15 +0000)]
Step 1 of VSX changes: Powerpc infrstructure changes

Co-Authored-By: Pat Haugen <pthaugen@us.ibm.com>
Co-Authored-By: Revital Eres <eres@il.ibm.com>
From-SVN: r148869

15 years agoconfig.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and extra_objs.
Anatoly Sokolov [Tue, 23 Jun 2009 19:14:11 +0000 (23:14 +0400)]
config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and extra_objs.

* config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
extra_objs.
* config/avr/avr.c (avr_current_device): New variable.
(avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
(avr_arch, mcu_type_s): Move to avr.h.
* config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
default_data_section_start fields.
(avr_arch): Moved from avr.c.
(mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
library_name fields.
(avr_current_device, avr_mcu_types, avr_arch_types,
avr_device_to_arch, avr_device_to_data_start,
avr_device_to_startfiles, avr_device_to_devicelib): Declare.
(EXTRA_SPEC_FUNCTIONS): Define.
(LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
options mapping. Use device_to_arch and device_to_data_start insted.
(STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
(CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
* config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
* config/avr/driver-avr.c: New file.
* config/avr/avr-devices.c: New file.

From-SVN: r148868

15 years agore PR testsuite/39297 (gcc.dg/tree-ssa/loop-31.c)
Steve Ellcey [Tue, 23 Jun 2009 18:28:26 +0000 (18:28 +0000)]
re PR testsuite/39297 (gcc.dg/tree-ssa/loop-31.c)

2009-06-23  Steve Ellcey  <sje@cup.hp.com>

PR testsuite/39297
* gcc.dg/ssa/loop-31.c: Change scan rules.

From-SVN: r148862

15 years agomacros.h: Replace @tbd with valid doxygen tag @todo.
Jonathan Wakely [Tue, 23 Jun 2009 17:51:48 +0000 (17:51 +0000)]
macros.h: Replace @tbd with valid doxygen tag @todo.

2009-06-23  Jonathan Wakely  <jwakely.gcc@gmail.com>

* include/debug/macros.h: Replace @tbd with valid doxygen tag @todo.
* include/std/ratio: Typo in comment.

From-SVN: r148861

15 years agodirectives.c (parse_include): Add location argument.
Manuel López-Ibáñez [Tue, 23 Jun 2009 16:30:58 +0000 (16:30 +0000)]
directives.c (parse_include): Add location argument.

2009-06-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

libcpp/
* directives.c (parse_include): Add location argument. Update all
calls.
(parse_answer): Likewise.
(do_include_common): Error with exact location.
(parse_assertion): Likewise.
testsuite/
* gcc.dg/cpp/empty-include.c: Update column info.
* gcc.dg/cpp/assert2.c: Update column info.

From-SVN: r148857

15 years agovar-tracking.c (unshare_variable): Force initialized to be VAR_INIT_STATUS_INITIALIZE...
Jakub Jelinek [Tue, 23 Jun 2009 14:32:59 +0000 (16:32 +0200)]
var-tracking.c (unshare_variable): Force initialized to be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.

* var-tracking.c (unshare_variable): Force initialized to
be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
(set_variable_part): Likewise.
(struct variable_union_info): Remove pos_src field.
(vui_vec, vui_allocated): New variables.
(variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
== 1 use a simpler sorting algorithm.  Compute pos field right
away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
Avoid quadratic comparison if !flag_var_tracking_uninit.
(variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
unshare_variable unconditionally.
(dataflow_set_different_2): Removed.
(dataflow_set_different): Don't traverse second hash table.
(compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
unconditionally to var_reg_set or var_mem_set.
(emit_notes_in_bb): Likewise.
(delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
unshare_variable.
(emit_note_insn_var_location): Don't set initialized to
VAR_INIT_STATUS_INITIALIZED early.
(vt_finalize): Free vui_vec if needed, clear vui_vec and
vui_allocated.
* rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.

From-SVN: r148852

15 years agotree-object-size.c (addr_object_size): Instead of checking for non-NULL TREE_CHAIN...
Jakub Jelinek [Tue, 23 Jun 2009 14:27:04 +0000 (16:27 +0200)]
tree-object-size.c (addr_object_size): Instead of checking for non-NULL TREE_CHAIN of the FIELD_DECL check that there...

* tree-object-size.c (addr_object_size): Instead of checking
for non-NULL TREE_CHAIN of the FIELD_DECL check that there
are no FIELD_DECLs following it.

* g++.dg/ext/builtin-object-size1.C: New test.
* g++.dg/ext/builtin-object-size2.C: New test.

From-SVN: r148851

15 years agore PR libstdc++/40518 (data races when calling std::string::erase() on empty string)
Paolo Carlini [Tue, 23 Jun 2009 12:36:43 +0000 (12:36 +0000)]
re PR libstdc++/40518 (data races when calling std::string::erase() on empty string)

2009-06-23  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/40518
* include/bits/basic_string.h (basic_string<>::_Rep::
_M_set_length_and_sharable): Do not write the empty rep.
(basic_string<>::erase(iterator, iterator)): Likewise,
move out of line...
* include/bits/basic_string.tcc: ... here.

From-SVN: r148850

15 years agoutils.c (handle_vector_size_attribute): Import from c-common.c and populate in gnat_i...
Olivier Hainque [Tue, 23 Jun 2009 12:27:37 +0000 (12:27 +0000)]
utils.c (handle_vector_size_attribute): Import from c-common.c and populate in gnat_internal_attribute_table.

        * gcc-interface/utils.c (handle_vector_size_attribute): Import from
        c-common.c and populate in gnat_internal_attribute_table.

From-SVN: r148849

15 years agotree-ssa-math-opts.c (find_bswap): Increase the search depth in order to match bswaps...
Andreas Krebbel [Tue, 23 Jun 2009 12:10:06 +0000 (12:10 +0000)]
tree-ssa-math-opts.c (find_bswap): Increase the search depth in order to match bswaps with signed source operands.

2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>

* tree-ssa-math-opts.c (find_bswap): Increase the search depth in
order to match bswaps with signed source operands.

2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>

* gcc.dg/optimize-bswapsi-1.c: Add new bswap implementation.
* gcc.dg/optimize-bswapdi-1.c: Likewise.

From-SVN: r148848

15 years agoMinor reformatting.
Robert Dewar [Tue, 23 Jun 2009 10:29:39 +0000 (10:29 +0000)]
Minor reformatting.

From-SVN: r148847

15 years ago[multiple changes]
Arnaud Charlet [Tue, 23 Jun 2009 10:27:31 +0000 (12:27 +0200)]
[multiple changes]

2009-06-23  Ed Schonberg  <schonberg@adacore.com>

* sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
Available_View only when designated type of an anonymous access type
is  limited view.

2009-06-23  Robert Dewar  <dewar@adacore.com>

* sem_ch10.adb: Minor reformatting

* gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
turning off inlining if ASIS mode active).

* switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
This belongs in gnat1drv.adb after switches are scanned.

From-SVN: r148846

15 years ago* sdbout.c (sdbout_one_type): Fix braces in switch.
Rainer Orth [Tue, 23 Jun 2009 10:19:18 +0000 (10:19 +0000)]
* sdbout.c (sdbout_one_type): Fix braces in switch.

From-SVN: r148845

15 years agosem_attr.adb: Add with and use clauses for Sem_Ch10.
Hristian Kirtchev [Tue, 23 Jun 2009 10:15:47 +0000 (10:15 +0000)]
sem_attr.adb: Add with and use clauses for Sem_Ch10.

2009-06-23  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_attr.adb: Add with and use clauses for Sem_Ch10.
(Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
when dealing with class-wide types. Detect a legal shadow entity and
retrieve its non-limited view.

* sem_ch10.adb (Has_With_Clause): Move the spec and body of the
subprogram to top package level from Intall_Limited_Withed_Unit.
(Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
Add check which prevents the installation of a limited view if the
non-limited view is already visible through a with clause.
(Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
legal shadow entity which may occur in subprogram formals of anonymous
access type.

* sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.

* sem_ch3.adb (Access_Definition): Remove the propagation of flag
From_With_Type from the designated type to the generated anonymous
access type. Remove associated comment.

* sem_res.adb Add with and use clauses for Sem_Ch10.
(Full_Designated_Type): Detect a legal shadow entity and retrieve its
non-limited view. Since the shadow entity may replace a regular
incomplete type, return the available full view.

From-SVN: r148844

15 years ago[multiple changes]
Arnaud Charlet [Tue, 23 Jun 2009 10:09:38 +0000 (12:09 +0200)]
[multiple changes]

2009-06-23  Ed Schonberg  <schonberg@adacore.com>

* sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
incomplete type declarations. Previous code was potentially quadratic
in the number of visible declarations in any package appearing in a
limited_with_clause.

2009-06-23  Robert Dewar  <dewar@adacore.com>

* prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
xref_lib.adb: Minor reformatting

From-SVN: r148843

15 years agoa-stzhas.adb: Provide dummy body to avoid build problems with old versions which...
Robert Dewar [Tue, 23 Jun 2009 10:06:00 +0000 (10:06 +0000)]
a-stzhas.adb: Provide dummy body to avoid build problems with old versions which did have a...

2009-06-23  Robert Dewar  <dewar@adacore.com>

* a-stzhas.adb: Provide dummy body to avoid build problems with old
versions which did have a body for this unit.

From-SVN: r148842

15 years agotree-ssa-structalias.c (struct variable_info): Add is_global_var member.
Richard Guenther [Tue, 23 Jun 2009 10:03:41 +0000 (10:03 +0000)]
tree-ssa-structalias.c (struct variable_info): Add is_global_var member.

2009-06-23  Richard Guenther  <rguenther@suse.de>

* tree-ssa-structalias.c (struct variable_info): Add is_global_var
member.
(var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
var_callused, callused_tree, var_storedanything, storedanything_tree,
var_integer, integer_tree): Remove global variables.
(new_var_info): Do not pass new id, append the new var to the
global variable vector.
(do_ds_constraint): Use is_global_var member of the variable-info.
(new_scalar_tmp_constraint_exp): Adjust.
(create_function_info_for): Likewise.
(create_variable_info_for): Likewise.
(find_what_var_points_to): Remove dead code.
(init_base_vars): Simplify.
(compute_points_to_sets): Adjust.

From-SVN: r148841

15 years ago[multiple changes]
Arnaud Charlet [Tue, 23 Jun 2009 10:01:39 +0000 (12:01 +0200)]
[multiple changes]

2009-06-23  Vincent Celier  <celier@adacore.com>

* prj-attr.adb: Attribute names Initial_Required_Switches and
Final_Required_Switches changed to Leading_Required_Switches and
Trailing_Required_Switches.

* prj-nmsc.adb (Process_Compiler): Attribute names
Initial_Required_Switches and Final_Required_Switches changed to
Leading_Required_Switches and Trailing_Required_Switches.

* prj.ads (Language_Config): Component Initial_Required_Switches and
Final_Required_Switches changed to Leading_Required_Switches and
Trailing_Required_Switches.

* snames.ads-tmpl: Remove standard names Initial_Required_Switches and
Final_Required_Switches; add standard names Leading_Required_Switches
and Trailing_Required_Switches.

2009-06-23  Thomas Quinot  <quinot@adacore.com>

* prj-conf.adb: Minor reformatting

* xref_lib.adb: Minor cleanup

From-SVN: r148840

15 years ago[multiple changes]
Arnaud Charlet [Tue, 23 Jun 2009 09:57:45 +0000 (11:57 +0200)]
[multiple changes]

2009-06-23  Emmanuel Briot  <briot@adacore.com>

* prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
prj-conf.ads (Check_Configuration): New parameter
Compiler_Driver_Mandatory.

2009-06-23  Ed Schonberg  <schonberg@adacore.com>

* sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
context of the current unit has an inline pragma, the instance is not
rewritten as the declaration of the package wrapper. Handle both
possibilities when retrieving the visible subprogram that renames the
instantiation itself.

From-SVN: r148839

15 years ago[multiple changes]
Arnaud Charlet [Tue, 23 Jun 2009 09:49:38 +0000 (11:49 +0200)]
[multiple changes]

2009-06-23  Javier Miranda  <miranda@adacore.com>

* exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
designated types referencing entities from the limited view.

2009-06-23  Matthew Gingell  <gingell@adacore.com>

* a-stzhas.ads, a-szfzha.ads: Fix typo.

* Makefile.rtl: Ada.Strings.Wide_Wide_Fixed.Wide_Wide_Hash depends on
Ada.Strings.Wide_Wide_Hash. So we need to include a-stzhas in
the list of RTS files.

2009-06-23  Thomas Quinot  <quinot@adacore.com>

* ali.adb: Minor reformatting

2009-06-23  Ed Schonberg  <schonberg@adacore.com>

* sem_ch8.adb: Improve error message.

2009-06-23  Emmanuel Briot  <briot@adacore.com>

* prj-nmsc.adb: Minor reformating

* prj-conf.adb, prj-conf.ads: Remove use of Osint.Fail everywhere
(Do_Autoconf): accepts an empty Normalized_Hostname
(Process_Project_And_Apply_Config): New subprogram
(Parse_Project_And_Apply_Config): On_Load_Config now applies to the
project tree rather than the project view.

* prj-part.adb, prj.ads (Project_Qualifier): New possible value
Configuration.

From-SVN: r148838

15 years ago[multiple changes]
Arnaud Charlet [Tue, 23 Jun 2009 09:39:00 +0000 (11:39 +0200)]
[multiple changes]

2009-06-23  Robert Dewar  <dewar@adacore.com>

* s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types

* s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
small values

* prj-conf.ads: Minor reformatting

* prj-conf.adb: Minor reformatting

2009-06-23  Vasiliy Fofanov  <fofanov@adacore.com>

* g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
to correspond to the log format that gnatmem now expects.

2009-06-23  Vincent Celier  <celier@adacore.com>

* prj-attr.adb: New attributes Initial_Required_Switches,
Final_Required_Switches and Object_File_Switches

* prj-nmsc.adb (Process_Compiler): Process new attributes
Name_Final_Required_Switches, Name_Initial_Required_Switches and
Name_Object_File_Switches.

* prj.ads (Language_Config): New component
Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
Compiler_Final_Required_Switches and Object_File_Switches.

* snames.ads-tmpl: New standard names Initial_Required_Switches,
Final_Required_Switches and Object_File_Switches

From-SVN: r148837

15 years ago[multiple changes]
Arnaud Charlet [Tue, 23 Jun 2009 09:32:31 +0000 (11:32 +0200)]
[multiple changes]

2009-06-23  Pascal Obry  <obry@adacore.com>

* s-strhas.adb, s-strhas.ads: Minor reformatting.

2009-06-23  Ed Schonberg  <schonberg@adacore.com>

* sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
not indicate that the enclosing unit needs a body.

From-SVN: r148836

15 years agoprj-conf.ads, [...]: New files part of the project manager.
Emmanuel Briot [Tue, 23 Jun 2009 09:30:59 +0000 (09:30 +0000)]
prj-conf.ads, [...]: New files part of the project manager.

2009-06-23  Emmanuel Briot  <briot@adacore.com>

* prj-conf.ads, prj-conf.adb: New files part of the project manager.

From-SVN: r148835

15 years agosem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a primitive equality...
Ed Schonberg [Tue, 23 Jun 2009 09:25:20 +0000 (09:25 +0000)]
sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a primitive equality include it with its source...

2009-06-23  Ed Schonberg  <schonberg@adacore.com>

* sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
primitive equality include it with its source name even if the
operation is currently invisible, to make sure that the corresponding
slot in the dispatch table is reserved for the internal equality
subsequently generated during expansion.

From-SVN: r148834

15 years ago* Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
Matthew Gingell [Tue, 23 Jun 2009 09:24:45 +0000 (09:24 +0000)]
* Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.

From-SVN: r148833

15 years agoMAINTAINERS: Added my name to write-after-approval list.
Li Feng [Tue, 23 Jun 2009 03:55:49 +0000 (03:55 +0000)]
MAINTAINERS: Added my name to write-after-approval list.

2009-06-23  Li Feng  <nemokingdom@gmail.com>

* MAINTAINERS: Added my name to write-after-approval list.

From-SVN: r148831

15 years agocombine.c (try_combine): Dump information about the insns we're combining.
Adam Nemet [Tue, 23 Jun 2009 00:35:24 +0000 (00:35 +0000)]
combine.c (try_combine): Dump information about the insns we're combining.

* combine.c (try_combine): Dump information about the insns we're
combining.

From-SVN: r148828

15 years agocombine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION check when calling...
Adam Nemet [Tue, 23 Jun 2009 00:31:44 +0000 (00:31 +0000)]
combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION check when calling force_to_mode on TRUNCATE's operand.

* combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
check when calling force_to_mode on TRUNCATE's operand.

testsuite/
* gcc.target/mips/truncate-3.c: New test.

From-SVN: r148827

15 years agoDelete bad entry.
Jerry DeLisle [Tue, 23 Jun 2009 00:17:06 +0000 (00:17 +0000)]
Delete bad entry.

From-SVN: r148826

15 years agoDaily bump.
GCC Administrator [Tue, 23 Jun 2009 00:16:39 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r148825

15 years agore PR fortran/40508 (memory leak in internal write of gfortran)
Jerry DeLisle [Tue, 23 Jun 2009 00:16:24 +0000 (00:16 +0000)]
re PR fortran/40508 (memory leak in internal write of gfortran)

2009-06-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/40508
* io/format.c: Don't save parsed format data for internal units.

From-SVN: r148823

15 years agors6000.opt: Move msched-epilog before msched-prolog.
Ian Lance Taylor [Mon, 22 Jun 2009 22:27:06 +0000 (22:27 +0000)]
rs6000.opt: Move msched-epilog before msched-prolog.

* config/rs6000/rs6000.opt: Move msched-epilog before
msched-prolog.

From-SVN: r148821

15 years agore PR fortran/37254 (Reject valid PROCEDURE statement with implicit interface)
Janus Weil [Mon, 22 Jun 2009 21:28:34 +0000 (23:28 +0200)]
re PR fortran/37254 (Reject valid PROCEDURE statement with implicit interface)

2009-06-22  Janus Weil  <janus@gcc.gnu.org>

PR fortran/37254
* gfortran.dg/proc_decl_22.f90: Delete property svn:executable
(wrongly introduced in last commit).

From-SVN: r148817

15 years agore PR fortran/37254 (Reject valid PROCEDURE statement with implicit interface)
Janus Weil [Mon, 22 Jun 2009 21:02:19 +0000 (23:02 +0200)]
re PR fortran/37254 (Reject valid PROCEDURE statement with implicit interface)

2009-06-22  Janus Weil  <janus@gcc.gnu.org>

PR fortran/37254
PR fortran/39850
* interface.c (compare_parameter): Set implicit type for function
actual arguments with BT_UNKNOWN.

2009-06-22  Janus Weil  <janus@gcc.gnu.org>

PR fortran/37254
PR fortran/39850
* gfortran.dg/interface_30.f90: Modified error message.
* gfortran.dg/proc_decl_22.f90: New.

From-SVN: r148816

15 years agoChangeLog: Fixes.
Uros Bizjak [Mon, 22 Jun 2009 20:44:50 +0000 (22:44 +0200)]
ChangeLog: Fixes.

* libgcc/ChangeLog: Fixes.
* gcc/ChangeLog: Ditto.

From-SVN: r148815

15 years agore PR fortran/40472 (Simplification of spread intrinsic takes a long time)
Tobias Burnus [Mon, 22 Jun 2009 20:24:18 +0000 (22:24 +0200)]
re PR fortran/40472 (Simplification of spread intrinsic takes a long time)

2009-06-22  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40472
        PR fortran/50520
        * simplify.c (gfc_simplify_spread): Fix the case that source=
        is a scalar.

From-SVN: r148814

15 years agoarm.md (prologue_use): Set length of fake insn to 0.
Steven Bosscher [Mon, 22 Jun 2009 20:07:38 +0000 (20:07 +0000)]
arm.md (prologue_use): Set length of fake insn to 0.

* config/arm/arm.md (prologue_use): Set length of fake insn to 0.

From-SVN: r148813

15 years agoinvoke.texi (Link Options): -nodefaultlibs and -nostdlib override library linkage...
Ralf Wildenhues [Mon, 22 Jun 2009 19:23:49 +0000 (19:23 +0000)]
invoke.texi (Link Options): -nodefaultlibs and -nostdlib override library linkage flags such as...

gcc/
* doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
override library linkage flags such as -static-libgcc or
-shared-libgcc.

From-SVN: r148811

15 years ago* config/m68k/m68k-devices.def: Add line for MCF5221x.
Maxim Kuvyrkov [Mon, 22 Jun 2009 18:40:20 +0000 (18:40 +0000)]
* config/m68k/m68k-devices.def: Add line for MCF5221x.

From-SVN: r148810

15 years agotestsuite_common_types.h (bitwise_operators, [...]): Initialize a and b.
Paolo Carlini [Mon, 22 Jun 2009 16:49:57 +0000 (16:49 +0000)]
testsuite_common_types.h (bitwise_operators, [...]): Initialize a and b.

2009-06-22  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/util/testsuite_common_types.h (bitwise_operators,
bitwise_assignment_operators): Initialize a and b.
(struct has_bitwise_operators): Do not call the latter.
* testsuite/29_atomics/atomic_integral/cons/assign_neg.cc: Adjust
dg-error line numbers.
* testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise.
* testsuite/29_atomics/atomic/cons/assign_neg.cc: Likewise.
* testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.

From-SVN: r148809

15 years agolinux.opt: Put mglibc ahead of muclibc.
Ian Lance Taylor [Mon, 22 Jun 2009 16:49:03 +0000 (16:49 +0000)]
linux.opt: Put mglibc ahead of muclibc.

./: * config/linux.opt: Put mglibc ahead of muclibc.

* c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
for duplicate decls.
testsuite/:
* gcc.dg/Wcxx-compat-19.c: New testcase.

From-SVN: r148808

15 years agoMakefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
Matthias Klose [Mon, 22 Jun 2009 15:20:34 +0000 (15:20 +0000)]
Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).

2009-06-22  Matthias Klose  <doko@ubuntu.com>

* Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).

From-SVN: r148806

15 years agore PR objc++/28050 (ICE on invalid initializer)
Matthias Klose [Mon, 22 Jun 2009 15:18:38 +0000 (15:18 +0000)]
re PR objc++/28050 (ICE on invalid initializer)

gcc/
2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>

        PR objc/28050
        * c-parser.c (c_parser_objc_message_args): Return error_mark_node
        instead of NULL if a parser error occurs.

gcc/objc/
2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>

        PR objc/28050
        * objc-act.c (objc_build_message_args): Return if ARGS is the
        error_mark_node.

gcc/testsuite/
2009-06-22  Matthias Klose  <doko@ubuntu.com>

        PR objc/28050
        * pr28050.m: New testcase.

From-SVN: r148804

15 years ago1.cc: Mark test as possibly unused.
Paolo Carlini [Mon, 22 Jun 2009 14:57:23 +0000 (14:57 +0000)]
1.cc: Mark test as possibly unused.

2009-06-22  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/23_containers/list/invalidation/1.cc: Mark test as
possibly unused.
* testsuite/23_containers/list/invalidation/2.cc: Likewise.
* testsuite/23_containers/list/invalidation/3.cc: Likewise.
* testsuite/23_containers/list/invalidation/4.cc: Likewise.

From-SVN: r148801

15 years agodwarf2out.c (dwarf2_debug_hooks): Initialize non-DWARF2_DEBUGGING_INFO version.
Rainer Orth [Mon, 22 Jun 2009 14:55:54 +0000 (14:55 +0000)]
dwarf2out.c (dwarf2_debug_hooks): Initialize non-DWARF2_DEBUGGING_INFO version.

* dwarf2out.c (dwarf2_debug_hooks): Initialize
non-DWARF2_DEBUGGING_INFO version.

From-SVN: r148800

15 years agoMissed changelog entry.
Kai Tietz [Mon, 22 Jun 2009 14:05:00 +0000 (16:05 +0200)]
Missed changelog entry.

From-SVN: r148799

15 years agoChangeLog for gcc
Kai Tietz [Mon, 22 Jun 2009 14:04:19 +0000 (16:04 +0200)]
ChangeLog for gcc

2009-06-22  Kai Tietz  <kai.tietz@onevision.com>

* config.gcc: Add for x86 and x64 mingw targets t-fprules-soft
and t-softfp support.
* config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Enable TFmode.
(LIBGCC2_TF_CEXT): Define.
(TF_SIZE): Define.

ChangeLog for libgcc

2009-06-22  Kai Tietz  <kai.tietz@onevision.com>

* config.host: Add soft emulation for x86 and x64 mingw targets.
* config/i386/64/_divtc3.c: Disable for mingw targets usage of
.symver assembly symbol.
* config/i386/64/_multc3.c: Likewise.
* config/i386/64/_powitf2.c: Likewise.
* config/i386/64/eqtf2.c: Likewise.
* config/i386/64/getf2.c: Likewise.
* config/i386/64/letf2.c: Likewise.
* config/i386/64/letf2.c: Likewise.
* config/i386/64/sfp-machine.h (_FP_W_TYPE): Define it
for x64 mingw target as unsigned long long.
(_FP_WS_TYPE): Define it for x64 mingw target as signed long
long.
(_FP_I_TYPE): Define it for x64 mingw target as long long.

From-SVN: r148798

15 years agoAdd the missing g++.dg/torture/pr40492.C.
H.J. Lu [Mon, 22 Jun 2009 13:52:40 +0000 (06:52 -0700)]
Add the missing g++.dg/torture/pr40492.C.

From-SVN: r148796

15 years agore PR testsuite/40481 (gcc.dg/plugin/one_time-test-1.c doesn't work on ia64)
H.J. Lu [Mon, 22 Jun 2009 13:36:37 +0000 (13:36 +0000)]
re PR testsuite/40481 (gcc.dg/plugin/one_time-test-1.c doesn't work on ia64)

2009-06-22  H.J. Lu  <hongjiu.lu@intel.com>

PR testsuite/40481
* gcc.dg/plugin/one_time_plugin.c (one_pass_exec): Return 0;

From-SVN: r148795

15 years ago[multiple changes]
Arnaud Charlet [Mon, 22 Jun 2009 13:28:59 +0000 (15:28 +0200)]
[multiple changes]

2009-06-22  Jose Ruiz  <ruiz@adacore.com>

* sysdep.c (__gnat_localtime_tzoff for RTX):
SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
GetTimeZoneInformation instead.

2009-06-22  Robert Dewar  <dewar@adacore.com>

* sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure

2009-06-22  Ed Schonberg  <schonberg@adacore.com>

* sem_ch12.adb (Collect_Previous_Instances): Do not collect
instantiations declared in a previous generic package body.

2009-06-22  Robert Dewar  <dewar@adacore.com>

* gnat_rm.texi: Add doc that X=True and X=False is allowed for the
restriction No_Direct_Boolean_Operators.

2009-06-22  Thomas Quinot  <quinot@adacore.com>

* bindusg.adb: Minor fixes to gnatbind usage message

* sem_eval.adb: Minor reformatting

From-SVN: r148794

15 years ago[multiple changes]
Arnaud Charlet [Mon, 22 Jun 2009 13:15:08 +0000 (15:15 +0200)]
[multiple changes]

2009-06-22  Javier Miranda  <miranda@adacore.com>

* sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
freezing point the check on the use of abstract types in object
declarations. Done to allow the declaration of C++ imported variables
or constants whose type corresponds with an imported C++ classes for
which the constructor is not imported.

2009-06-22  Thomas Quinot  <quinot@adacore.com>

* sem_ch6.adb: Minor reformatting

2009-06-22  Ed Schonberg  <schonberg@adacore.com>

* exp_ch3.adb (Build_Initialization_Call): If a discriminated record
component is constrained with an expression rather than with a
discriminant of the enclosing type, use that expression when building
the call to default-initialize the component, when the call is part of
an aggregate with box initialization.

From-SVN: r148793

15 years ago[multiple changes]
Arnaud Charlet [Mon, 22 Jun 2009 13:09:00 +0000 (15:09 +0200)]
[multiple changes]

2009-06-22  Ed Schonberg  <schonberg@adacore.com>

* sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
unconditional rather than a style check, because a formal name out of
order is suspicious.

2009-06-22  Vincent Celier  <celier@adacore.com>

* prj-nmsc.adb (Locate_Directory): Indicate the project name when
creating a directory automatically.

2009-06-22  Eric Botcazou  <ebotcazou@adacore.com>

* sem_ch3.adb (Create_Constrained_Components): For a subtype of an
untagged derived type, add a hidden component for every constrained
discriminant of the parent type to keep record layout consistent.

From-SVN: r148792

15 years agoFix target/40463
Ramana Radhakrishnan [Mon, 22 Jun 2009 12:43:23 +0000 (12:43 +0000)]
Fix target/40463
2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

PR target/40463
* config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.

From-SVN: r148791

15 years agoDisable caller and callee super interworking.
Ramana Radhakrishnan [Mon, 22 Jun 2009 12:40:37 +0000 (12:40 +0000)]
Disable caller and callee super interworking.

2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

* config/arm/arm.c (arm_override_options): Disable -mcaller-super-interworking
and -mcallee-super-interworking.
* doc/invoke.texi (ARM Options): Document this.

From-SVN: r148790

15 years ago[multiple changes]
Arnaud Charlet [Mon, 22 Jun 2009 12:24:57 +0000 (14:24 +0200)]
[multiple changes]

2009-06-22  Thomas Quinot  <quinot@adacore.com>

* exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
copy).

2009-06-22  Ed Falis  <falis@adacore.com>

* sysdep.c: remove include for nfsLib.h and an NFS specific error
message for VxWorks 653 vThreads: not supported by the OS.

* gsocket.h: disable sockets for VxWorks 653 vThreads.

2009-06-22  Robert Dewar  <dewar@adacore.com>

* sem_ch6.adb: Add ??? comment for bad use of Style_Check

2009-06-22  Matthew Gingell  <gingell@adacore.com>
    Arnaud Charlet  <charlet@adacore.com>

* a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
a-swuwha.adb: New unit System.String_Hash.
Refactor redundant cut and pasted hash functions with instances of a
new generic hash function.
Implement a new string hashing algorithm which appears in testing to
be move effective than to previous approach.

* gcc-interface/Make-lang.in: Update dependencies.

* gcc-interface/Makefile.in: Reindent correctly vms targets.
Fix setting of TOOLS_TARGET_PAIRS for bare board platforms.
Disable socket support for Vxworks 653 vThreads.
Improve handling of signals on darwin.
(GNATMAKE_OBJS): Update dependencies.

From-SVN: r148789

15 years agoarm.c (arm_print_operand): Deal with HIGH.
Nathan Sidwell [Mon, 22 Jun 2009 11:54:59 +0000 (11:54 +0000)]
arm.c (arm_print_operand): Deal with HIGH.

* config/arm/arm.c (arm_print_operand): Deal with HIGH.
* config/arm/constraints.md (j): New constraint for movw operands.
(N): Remove thumb2 meaning.
* config/arm/arm.md (*arm_movw): Delete.
(*arm_movsi_insn): Use j constraint for movw instead of N constraint.
* config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
* config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.

From-SVN: r148788

15 years agore PR tree-optimization/40492 (ice in create_tmp_var)
Martin Jambor [Mon, 22 Jun 2009 10:54:16 +0000 (12:54 +0200)]
re PR tree-optimization/40492 (ice in create_tmp_var)

2009-06-22  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/40492
* tree-sra.c (sra_modify_assign): Pass zero offsets to
build_ref_for_offset.

* testsuite/g++.dg/torture/pr40492.C: New test.

From-SVN: r148787

15 years agoalias.c: Use REG_P...
Shujing Zhao [Mon, 22 Jun 2009 10:29:13 +0000 (10:29 +0000)]
alias.c: Use REG_P...

2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>

* alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
JUMP_TABLE_DATA_P predicates where applicable.
* auto-inc-dec.c: Ditto.
* builtins.c: Ditto.
* caller-save.c: Ditto.
* calls.c: Ditto.
* cfgcleanup.c: Ditto.
* cfglayout.c: Ditto.
* cfgrtl.c: Ditto.
* combine.c: Ditto.
* combine-stack-adj.c: Ditto.
* cse.c: Ditto.
* cselib.c: Ditto.
* dbxout.c: Ditto.
* df-scan.c: Ditto.
* dse.c: Ditto.
* dwarf2asm.c: Ditto.
* dwarf2out.c: Ditto.
* emit-rtl.c: Ditto.
* except.c: Ditto.
* explow.c: Ditto.
* expmed.c: Ditto.
* expr.c: Ditto.
* final.c: Ditto.
* function.c: Ditto.
* fwprop.c: Ditto.
* gcse.c: Ditto.
* genpreds.c: Ditto.
* genrecog.c: Ditto.
* ifcvt.c: Ditto.
* ira-costs.c: Ditto.
* ira-lives.c: Ditto.
* jump.c: Ditto.
* loop-iv.c: Ditto.
* lower-subreg.c: Ditto.
* modulo-sched.c: Ditto.
* optabs.c: Ditto.
* postreload.c: Ditto.
* print-rtl.c: Ditto.
* recog.c: Ditto.
* reginfo.c: Ditto.
* regmove.c: Ditto.
* reload1.c: Ditto.
* reload.c: Ditto.
* reorg.c: Ditto.
* rtlanal.c: Ditto.
* rtl.c: Ditto.
* sched-vis.c: Ditto.
* sdbout.c: Ditto.
* sel-sched-ir.c: Ditto.
* simplify-rtx.c: Ditto.
* targhooks.c: Ditto.
* var-tracking.c: Ditto.
* vmsdbgout.c: Ditto.

From-SVN: r148786

15 years agolibtool-version: Bump soversion.
Matthias Klose [Mon, 22 Jun 2009 09:46:57 +0000 (09:46 +0000)]
libtool-version: Bump soversion.

2009-06-22  Matthias Klose  <doko@ubuntu.com>

        * libtool-version: Bump soversion.

From-SVN: r148785

15 years agodump-noaddr.x (dump_compare): Determine dumpbase file name from $src.
Uros Bizjak [Mon, 22 Jun 2009 09:27:04 +0000 (11:27 +0200)]
dump-noaddr.x (dump_compare): Determine dumpbase file name from $src.

* gcc.c-torture/unsorted/dump-noaddr.x (dump_compare): Determine
dumpbase file name from $src.  Add -fdump-ipa-all to compile flags.

From-SVN: r148784

15 years agoMakefile.in (install-plugin): Always use DESTDIR.
Matthias Klose [Mon, 22 Jun 2009 09:21:56 +0000 (09:21 +0000)]
Makefile.in (install-plugin): Always use DESTDIR.

2009-06-22  Matthias Klose  <doko@ubuntu.com>

        * Makefile.in (install-plugin): Always use DESTDIR.

From-SVN: r148783

15 years ago[multiple changes]
Arnaud Charlet [Mon, 22 Jun 2009 09:21:53 +0000 (11:21 +0200)]
[multiple changes]

2009-06-22  Robert Dewar  <dewar@adacore.com>

* sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
by Sloc_Range.

* freeze.adb: Minor comment updates

* s-valrea.adb (Bad_Based_Value): New procedure
(Scan_Real): Raise exceptions with messages

2009-06-22  Matthew Gingell  <gingell@adacore.com>

* adaint.h: Complete previous change.

2009-06-22  Thomas Quinot  <quinot@adacore.com>

* exp_ch7.ads, exp_ch3.adb: Minor reformatting

2009-06-22  Ed Schonberg  <schonberg@adacore.com>

* sem_ch6.adb (Check_Overriding_Indicator): When style checks are
enabled, emit warning when a non-controlling argument of the overriding
operation appears out of place vis-a-vis of the formal of the
overridden operation.

From-SVN: r148782

15 years ago[multiple changes]
Arnaud Charlet [Mon, 22 Jun 2009 09:11:52 +0000 (11:11 +0200)]
[multiple changes]

2009-06-22  Vincent Celier  <celier@adacore.com>

* gnatcmd.adb (Check_Files): Close temporary files after all file names
have been written into it.

2009-06-22  Matthew Gingell  <gingell@adacore.com>

* adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
available.

2009-06-22  Thomas Quinot  <quinot@adacore.com>

* sem_disp.adb (Check_Direct_Call): Handle the case where the full
view of the root type is visible at the point of the call.

2009-06-22  Pat Rogers  <rogers@adacore.com>

* gnat_ugn.texi: Revised a sentence to correct a minor grammar error.

From-SVN: r148781

15 years agopa.c (output_call): Don't optimize post call jumps into return address adjustments...
Olivier Hainque [Mon, 22 Jun 2009 09:08:58 +0000 (09:08 +0000)]
pa.c (output_call): Don't optimize post call jumps into return address adjustments if...

* config/pa/pa.c (output_call): Don't optimize post call jumps
into return address adjustments if the call may throw.

testsuite/
* gnat.dg/raise_ce.adb: Helper for ...
* gnat.dg/handle_and_return.adb: New test.

From-SVN: r148780

15 years agofreeze.adb: Add comments.
Jerome Lambourg [Mon, 22 Jun 2009 09:06:25 +0000 (09:06 +0000)]
freeze.adb: Add comments.

2009-06-22  Jerome Lambourg  <lambourg@adacore.com>

* freeze.adb: Add comments.

From-SVN: r148779

15 years agore PR fortran/40443 (Elemental procedure in genericl interface incorrectly selected...
Paul Thomas [Mon, 22 Jun 2009 04:41:53 +0000 (04:41 +0000)]
re PR fortran/40443 (Elemental procedure in genericl interface incorrectly selected in preference to specific procedure)

2009-06-22  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/40443
* interface.c (gfc_search_interface): Hold back a match to an
elementary procedure until all other possibilities are
exhausted.

2009-06-22  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/40443
* gfortran.dg/generic_18.f90: New test.

From-SVN: r148777

15 years agore PR fortran/40443 (Elemental procedure in genericl interface incorrectly selected...
Paul Thomas [Mon, 22 Jun 2009 04:41:10 +0000 (04:41 +0000)]
re PR fortran/40443 (Elemental procedure in genericl interface incorrectly selected in preference to specific procedure)

2009-06-22  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/40443
* interface.c (gfc_search_interface): Hold back a match to an
elementary procedure until all other possibilities are
exhausted.

2009-06-22  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/40443
* gfortran.dg/generic_18.f90: New test.

From-SVN: r148776

15 years agore PR fortran/40472 (Simplification of spread intrinsic takes a long time)
Paul Thomas [Mon, 22 Jun 2009 04:39:40 +0000 (04:39 +0000)]
re PR fortran/40472 (Simplification of spread intrinsic takes a long time)

2009-06-22  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/40472
* simplify.c (gfc_simplify_spread): Restrict the result size to
the limit for an array constructor.

2009-06-22  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/40472
* gfortran.dg/spread_size_limit.f90: New test.

From-SVN: r148775

15 years agoDaily bump.
GCC Administrator [Mon, 22 Jun 2009 00:16:56 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r148774

15 years agoarm.c (thumb1_output_casesi): New function.
Richard Earnshaw [Sun, 21 Jun 2009 20:48:15 +0000 (20:48 +0000)]
arm.c (thumb1_output_casesi): New function.

* arm.c (thumb1_output_casesi): New function.
* arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
optimizing for size or PIC.
(CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
* arm.md (UNSPEC_THUMB1_CASESI): New constant.
(casesi): Handle Thumb-1 when optimizing for size or PIC.
(thumb1_casesi_internal_pic): New expand rule.
(thumb1_casesi_dispatch): New pattern.
* aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
thumb-1 mode.
* coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
in the text seciton when PIC or optimizing for size.
* elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
* lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
preservation properties of code.
(__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
(__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
(__gnu_thumb1_case_si): New function.
* t-arm (LIB1ASMSRC): Define here.
(LIB1ASMFUNCS): Add some common functions.
* t-arm-elf (LIB1ASMSRC): Delete.
(LIB1ASMFUNCS): Append to existing set.
* t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
* t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
* t-symbian (LIB1ASMFUNCS): Likewise.
* t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
* t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.

From-SVN: r148770

15 years agore PR fortran/37577 ([meta-bug] change internal array descriptor format for better...
Thomas Koenig [Sun, 21 Jun 2009 19:24:55 +0000 (19:24 +0000)]
re PR fortran/37577 ([meta-bug] change internal array descriptor format for better syntax, C interop TR, rank 15)

2009-06-21  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/37577
Port from fortran-dev
* runtime/in_pack_generic (internal_pack):  Remove unnecessary
test for stride == 0.
* runtime/in_unpack_generic.c (internal_unpack):  Likewise.
* intrinsics/iso_c_binding.c (c_f_pointer_u0):  Take care
of stride in "shape" argument.  Use array access macros for
accessing array descriptors.
* libgfortran.h (struct descriptor_dimension):  Change stride
to _stride, lbound to _lbound and ubound to _ubound.
(GFC_DIMENSION_LBOUND):  Use new name(s) in struct
descriptor_dimension.
(GFC_DIMENSION_UBOUND):  Likewise.
(GFC_DIMENSION_STRIDE):  Likewise.
(GFC_DIMENSION_EXTENT):  Likewise.
(GFC_DIMENSION_SET):  Likewise.
(GFC_DESCRIPTOR_LBOUND):  Likewise.
(GFC_DESCRIPTOR_UBOUND):  Likewise.
(GFC_DESCRIPTOR_EXTENT):  Likewise.
(GFC_DESCRIPTOR_STRIDE):  Likewise.
* io/transfer.c (transfer_array):  Use array access macros.
Use byte-sized strides.
* intrinsics/eoshift0.c (eoshift0):  Use array access
macros everywhere.
* m4/in_pack.m4 (internal_pack_'rtype_ccode`):  Use
array access macros for accessing array descriptors.
* m4/in_unpack.m4 (internal_unpack_'rtype_ccode`):
Likewise.
* m4/matmull.m4 (matmul_'rtype_code`):  Likewise.
* m4/matmul.m4 (matmul_'rtype_code`):  Likewise.
* m4/unpack.m4 (unpack0_'rtype_code`):  Likewise.
(unpack1_'rtype_code`):  Likewise.
* m4/ifunction_logical.m4 (name`'rtype_qual`_'atype_code): Likewise.
* m4/ifunction.m4 (name`'rtype_qual`_'atype_code): Use array access
macros everywhere.
* intrinsics/dtime.c (dtime_sub):  Use array access macros
for accessing array descriptors.
* intrinsics/cshift0 (cshift0):  Likewise.
* intrinsics/etime.c:  Likewise.  Remove redundant calculation
of rdim.
* m4/cshift0.m4 (cshift0_'rtype_code`):  Use array access macros
for accessing array descriptors.
* m4/pack.m4 (pack_'rtype_code`):  Likewise.
* m4/spread.m4 (spread_'rtype_code`):  Likewise.
(spread_scalar_'rtype_code`):  Likewise.
* m4/transpose.m4 (transpose_'rtype_code`):  Likewise.
* m4/iforeach.m4 (name`'rtype_qual`_'atype_code):  Likewise.
* m4/eoshift1.m4 (eoshift1):  Likewise.  Remove size argument,
calculate within function.
(eoshift1_'atype_kind`):  Remove size argument from call
to eoshift1.
(eoshift1_'atype_kind`_char):  Likewise.
(eoshift1_'atype_kind`_char4):  Likewise.
* m4/eoshift3.m4 (eoshift3):  Remove size argument, calculate
within function. Use array access macros for accessing array
descriptors.
(eoshift3_'atype_kind`):  Remove size argument from call
to eoshift1.
(eoshift3_'atype_kind`_char):  Likewise.
(eoshift3_'atype_kind`_char4):  Likewise.
* m4/shape.m4 (shape_'rtype_kind`):  Use array access macros
for accessing array descriptors.
* m4/cshift1.m4 (cshift1): Remove size argument, calculate
within function. Use array access macros for accessing array
descriptors.
(cshift1_'atype_kind`):  Remove size argument from call to
cshift1.
(cshift1_'atype_kind`_char):  Remove size argument from call to
cshift1.
(cshift1_'atype_kind`_char4):  Remove size argument from call to
cshift1.
* m4/reshape.m4 (reshape_'rtype_ccode`):  Use array access macros
for accessing array descriptors.
* m4/ifunction.m4 (name`'rtype_qual`_'atype_code):  Likewise.
* intrinsics/pack_generic.c (pack_internal):  Use array access
macros for accessing array descriptors.
(pack_s_internal):  Likewise.
* intrinsics/transpose_generic.c (transpose_internal):  Remove
size argument, calculate from array descriptor. Use array
access macros for accessing array descriptors.
(transpose):  Remove size argument from call.
(transpoe_char):  Likewise.
(transpose_char4):  Likewise.
* intrinsics/move_alloc.c (move_alloc):  Use array access macros
for accessing array descriptors.
* intrinsics/spread_generic.c (spread_internal):  Remove size
argument, calculate from array descriptor.  Use array access
macros for accessing array descriptors.
(spread_internal_scalar):  Likewise.
(spread):  Remove size argument from call to spread_internal.
(spread_char):  Mark argument source_length as unused.
Remove size argument from call to spread_internal.
(spread_char4):  Likewise.
(spread_char_scalar):  Likewise.
(spread_char4_scalar):  Likewise.
* intrinsics/unpack_generic.c (unpack_internal):  Use array access
macros for accessing array descriptors.
* intrinsics/eoshift2.c (eoshift2):  Remove size argument, calculate
from array descriptor instead.  Use array access macros for
accessing array descriptors.
(eoshift2_##N):  Remove size argument from call to eoshift2.
(eoshift2_##N_##char):  Likewise.
(eoshift2_##N_##char4):  Likewise.
* intrinsics/reshape_generic.c (reshape_internal):  Use array
access macross for accessing array descriptors.
* libgfortran.h:  Introduce new macros GFC_DIMENSION_LBOUND,
GFC_DIMENSION_UBOUND,GFC_DIMENSION_STRIDE, GFC_DIMENSION_EXTENT,
GFC_DIMENSION_SET, GFC_DESCRIPTOR_LBOUND, GFC_DESCRIPTOR_UBOUND,
GFC_DESCRIPTOR_EXTENT, GFC_DESCRIPTOR_EXTENT_BYTES,
GFC_DESCRIPTOR_STRIDE, GFC_DESCRIPTOR_STRIDE_BYTES
* runtime/in_pack_generic.c (internal_pack):  Use new macros
for array descriptor access.
* runtime/in_unpack_generic.c (internal_unpack):  Likewise.
* intrinsics/dtime.c (dtime_sub):  Likewise.
* intrinsics/cshift0 (cshift0):  Remove argument size,
calculate directly from the array descriptor.  Use new macros
for array descriptor access.
* cshift0_##N:  Remove shift argument in call to cshift0.
* cshift0_##N_char:  Mark array_length as unused.  Remove
array_length in call to cshift0.
* cshift0_##N_char4:  Likewise.
* intrisics/etime.c:  Use new macros for array descriptor access.
* intrinsics/stat.c (stat_i4_sub_0):  Likewise.
(stat_i8_sub_0):  Likewise.
(fstat_i4_sub):  Likewise.
(fstat_i8_sub):  Likewise.
* intrinsics/date_and_time.c (date_and_time):  Likewise.
(secnds):  Likewise.
(itime_i4):  Likewise.
(itime_i8):  Likewise.
(idate_i4):  Likewise.
(idate_i8):  Likewise.
(gmtime_i4):  Likewise.
(gmtime_i8):  Likewise.
(ltime_i4):  Likewise.
(litme_i8):  Likewise.
* intrinsics/associated.c (associated):  Likewise.
* intrinsics/eoshift0.c (eoshift0):  Likewise.
* intriniscs/size.c (size0):  Likewise.
* intrinsics/random.c (arandom_r4):  Likewise.
(arandom_r8):  Likewise.
(arandom_r10):  Likewise.
(arandom_r16):  Likewise.
(random_seed_i4):  Likewise.
(random_seed_i8):  Likewise.
* io/list_read.c (nml_parse_qualifier):  Likewise.
(nml_touch_nodes):  Likewise.
(nml_read_obj):  Likewise.
(get_name):  Likewise.
* io/transfer.c (transfer_array):  Likewise.
(init_loop_spec):  Likewise.
(st_set_nml_var_dim):  Likewise.
* io/write.c (nml_write_obj):  Likewise.
(obj_loop):  Likewise.
* generated/all_l1.c: Regenerated.
* generated/all_l16.c: Regenerated.
* generated/all_l2.c: Regenerated.
* generated/all_l4.c: Regenerated.
* generated/all_l8.c: Regenerated.
* generated/any_l1.c: Regenerated.
* generated/any_l16.c: Regenerated.
* generated/any_l2.c: Regenerated.
* generated/any_l4.c: Regenerated.
* generated/any_l8.c: Regenerated.
* generated/count_16_l.c: Regenerated.
* generated/count_1_l.c: Regenerated.
* generated/count_2_l.c: Regenerated.
* generated/count_4_l.c: Regenerated.
* generated/count_8_l.c: Regenerated.
* generated/cshift0_c10.c: Regenerated.
* generated/cshift0_c16.c: Regenerated.
* generated/cshift0_c4.c: Regenerated.
* generated/cshift0_c8.c: Regenerated.
* generated/cshift0_i1.c: Regenerated.
* generated/cshift0_i16.c: Regenerated.
* generated/cshift0_i2.c: Regenerated.
* generated/cshift0_i4.c: Regenerated.
* generated/cshift0_i8.c: Regenerated.
* generated/cshift0_r10.c: Regenerated.
* generated/cshift0_r16.c: Regenerated.
* generated/cshift0_r4.c: Regenerated.
* generated/cshift0_r8.c: Regenerated.
* generated/cshift1_16.c: Regenerated.
* generated/cshift1_4.c: Regenerated.
* generated/cshift1_8.c: Regenerated.
* generated/eoshift1_16.c: Regenerated.
* generated/eoshift1_4.c: Regenerated.
* generated/eoshift1_8.c: Regenerated.
* generated/eoshift3_16.c: Regenerated.
* generated/eoshift3_4.c: Regenerated.
* generated/eoshift3_8.c: Regenerated.
* generated/in_pack_c10.c: Regenerated.
* generated/in_pack_c16.c: Regenerated.
* generated/in_pack_c4.c: Regenerated.
* generated/in_pack_c8.c: Regenerated.
* generated/in_pack_i1.c: Regenerated.
* generated/in_pack_i16.c: Regenerated.
* generated/in_pack_i2.c: Regenerated.
* generated/in_pack_i4.c: Regenerated.
* generated/in_pack_i8.c: Regenerated.
* generated/in_pack_r10.c: Regenerated.
* generated/in_pack_r16.c: Regenerated.
* generated/in_pack_r4.c: Regenerated.
* generated/in_pack_r8.c: Regenerated.
* generated/in_unpack_c10.c: Regenerated.
* generated/in_unpack_c16.c: Regenerated.
* generated/in_unpack_c4.c: Regenerated.
* generated/in_unpack_c8.c: Regenerated.
* generated/in_unpack_i1.c: Regenerated.
* generated/in_unpack_i16.c: Regenerated.
* generated/in_unpack_i2.c: Regenerated.
* generated/in_unpack_i4.c: Regenerated.
* generated/in_unpack_i8.c: Regenerated.
* generated/in_unpack_r10.c: Regenerated.
* generated/in_unpack_r16.c: Regenerated.
* generated/in_unpack_r4.c: Regenerated.
* generated/in_unpack_r8.c: Regenerated.
* generated/matmul_c10.c: Regenerated.
* generated/matmul_c16.c: Regenerated.
* generated/matmul_c4.c: Regenerated.
* generated/matmul_c8.c: Regenerated.
* generated/matmul_i1.c: Regenerated.
* generated/matmul_i16.c: Regenerated.
* generated/matmul_i2.c: Regenerated.
* generated/matmul_i4.c: Regenerated.
* generated/matmul_i8.c: Regenerated.
* generated/matmul_l16.c: Regenerated.
* generated/matmul_l4.c: Regenerated.
* generated/matmul_l8.c: Regenerated.
* generated/matmul_r10.c: Regenerated.
* generated/matmul_r16.c: Regenerated.
* generated/matmul_r4.c: Regenerated.
* generated/matmul_r8.c: Regenerated.
* generated/maxloc0_16_i1.c: Regenerated.
* generated/maxloc0_16_i16.c: Regenerated.
* generated/maxloc0_16_i2.c: Regenerated.
* generated/maxloc0_16_i4.c: Regenerated.
* generated/maxloc0_16_i8.c: Regenerated.
* generated/maxloc0_16_r10.c: Regenerated.
* generated/maxloc0_16_r16.c: Regenerated.
* generated/maxloc0_16_r4.c: Regenerated.
* generated/maxloc0_16_r8.c: Regenerated.
* generated/maxloc0_4_i1.c: Regenerated.
* generated/maxloc0_4_i16.c: Regenerated.
* generated/maxloc0_4_i2.c: Regenerated.
* generated/maxloc0_4_i4.c: Regenerated.
* generated/maxloc0_4_i8.c: Regenerated.
* generated/maxloc0_4_r10.c: Regenerated.
* generated/maxloc0_4_r16.c: Regenerated.
* generated/maxloc0_4_r4.c: Regenerated.
* generated/maxloc0_4_r8.c: Regenerated.
* generated/maxloc0_8_i1.c: Regenerated.
* generated/maxloc0_8_i16.c: Regenerated.
* generated/maxloc0_8_i2.c: Regenerated.
* generated/maxloc0_8_i4.c: Regenerated.
* generated/maxloc0_8_i8.c: Regenerated.
* generated/maxloc0_8_r10.c: Regenerated.
* generated/maxloc0_8_r16.c: Regenerated.
* generated/maxloc0_8_r4.c: Regenerated.
* generated/maxloc0_8_r8.c: Regenerated.
* generated/maxloc1_16_i1.c: Regenerated.
* generated/maxloc1_16_i16.c: Regenerated.
* generated/maxloc1_16_i2.c: Regenerated.
* generated/maxloc1_16_i4.c: Regenerated.
* generated/maxloc1_16_i8.c: Regenerated.
* generated/maxloc1_16_r10.c: Regenerated.
* generated/maxloc1_16_r16.c: Regenerated.
* generated/maxloc1_16_r4.c: Regenerated.
* generated/maxloc1_16_r8.c: Regenerated.
* generated/maxloc1_4_i1.c: Regenerated.
* generated/maxloc1_4_i16.c: Regenerated.
* generated/maxloc1_4_i2.c: Regenerated.
* generated/maxloc1_4_i4.c: Regenerated.
* generated/maxloc1_4_i8.c: Regenerated.
* generated/maxloc1_4_r10.c: Regenerated.
* generated/maxloc1_4_r16.c: Regenerated.
* generated/maxloc1_4_r4.c: Regenerated.
* generated/maxloc1_4_r8.c: Regenerated.
* generated/maxloc1_8_i1.c: Regenerated.
* generated/maxloc1_8_i16.c: Regenerated.
* generated/maxloc1_8_i2.c: Regenerated.
* generated/maxloc1_8_i4.c: Regenerated.
* generated/maxloc1_8_i8.c: Regenerated.
* generated/maxloc1_8_r10.c: Regenerated.
* generated/maxloc1_8_r16.c: Regenerated.
* generated/maxloc1_8_r4.c: Regenerated.
* generated/maxloc1_8_r8.c: Regenerated.
* generated/maxval_i1.c: Regenerated.
* generated/maxval_i16.c: Regenerated.
* generated/maxval_i2.c: Regenerated.
* generated/maxval_i4.c: Regenerated.
* generated/maxval_i8.c: Regenerated.
* generated/maxval_r10.c: Regenerated.
* generated/maxval_r16.c: Regenerated.
* generated/maxval_r4.c: Regenerated.
* generated/maxval_r8.c: Regenerated.
* generated/minloc0_16_i1.c: Regenerated.
* generated/minloc0_16_i16.c: Regenerated.
* generated/minloc0_16_i2.c: Regenerated.
* generated/minloc0_16_i4.c: Regenerated.
* generated/minloc0_16_i8.c: Regenerated.
* generated/minloc0_16_r10.c: Regenerated.
* generated/minloc0_16_r16.c: Regenerated.
* generated/minloc0_16_r4.c: Regenerated.
* generated/minloc0_16_r8.c: Regenerated.
* generated/minloc0_4_i1.c: Regenerated.
* generated/minloc0_4_i16.c: Regenerated.
* generated/minloc0_4_i2.c: Regenerated.
* generated/minloc0_4_i4.c: Regenerated.
* generated/minloc0_4_i8.c: Regenerated.
* generated/minloc0_4_r10.c: Regenerated.
* generated/minloc0_4_r16.c: Regenerated.
* generated/minloc0_4_r4.c: Regenerated.
* generated/minloc0_4_r8.c: Regenerated.
* generated/minloc0_8_i1.c: Regenerated.
* generated/minloc0_8_i16.c: Regenerated.
* generated/minloc0_8_i2.c: Regenerated.
* generated/minloc0_8_i4.c: Regenerated.
* generated/minloc0_8_i8.c: Regenerated.
* generated/minloc0_8_r10.c: Regenerated.
* generated/minloc0_8_r16.c: Regenerated.
* generated/minloc0_8_r4.c: Regenerated.
* generated/minloc0_8_r8.c: Regenerated.
* generated/minloc1_16_i1.c: Regenerated.
* generated/minloc1_16_i16.c: Regenerated.
* generated/minloc1_16_i2.c: Regenerated.
* generated/minloc1_16_i4.c: Regenerated.
* generated/minloc1_16_i8.c: Regenerated.
* generated/minloc1_16_r10.c: Regenerated.
* generated/minloc1_16_r16.c: Regenerated.
* generated/minloc1_16_r4.c: Regenerated.
* generated/minloc1_16_r8.c: Regenerated.
* generated/minloc1_4_i1.c: Regenerated.
* generated/minloc1_4_i16.c: Regenerated.
* generated/minloc1_4_i2.c: Regenerated.
* generated/minloc1_4_i4.c: Regenerated.
* generated/minloc1_4_i8.c: Regenerated.
* generated/minloc1_4_r10.c: Regenerated.
* generated/minloc1_4_r16.c: Regenerated.
* generated/minloc1_4_r4.c: Regenerated.
* generated/minloc1_4_r8.c: Regenerated.
* generated/minloc1_8_i1.c: Regenerated.
* generated/minloc1_8_i16.c: Regenerated.
* generated/minloc1_8_i2.c: Regenerated.
* generated/minloc1_8_i4.c: Regenerated.
* generated/minloc1_8_i8.c: Regenerated.
* generated/minloc1_8_r10.c: Regenerated.
* generated/minloc1_8_r16.c: Regenerated.
* generated/minloc1_8_r4.c: Regenerated.
* generated/minloc1_8_r8.c: Regenerated.
* generated/minval_i1.c: Regenerated.
* generated/minval_i16.c: Regenerated.
* generated/minval_i2.c: Regenerated.
* generated/minval_i4.c: Regenerated.
* generated/minval_i8.c: Regenerated.
* generated/minval_r10.c: Regenerated.
* generated/minval_r16.c: Regenerated.
* generated/minval_r4.c: Regenerated.
* generated/minval_r8.c: Regenerated.
* generated/pack_c10.c: Regenerated.
* generated/pack_c16.c: Regenerated.
* generated/pack_c4.c: Regenerated.
* generated/pack_c8.c: Regenerated.
* generated/pack_i1.c: Regenerated.
* generated/pack_i16.c: Regenerated.
* generated/pack_i2.c: Regenerated.
* generated/pack_i4.c: Regenerated.
* generated/pack_i8.c: Regenerated.
* generated/pack_r10.c: Regenerated.
* generated/pack_r16.c: Regenerated.
* generated/pack_r4.c: Regenerated.
* generated/pack_r8.c: Regenerated.
* generated/product_c10.c: Regenerated.
* generated/product_c16.c: Regenerated.
* generated/product_c4.c: Regenerated.
* generated/product_c8.c: Regenerated.
* generated/product_i1.c: Regenerated.
* generated/product_i16.c: Regenerated.
* generated/product_i2.c: Regenerated.
* generated/product_i4.c: Regenerated.
* generated/product_i8.c: Regenerated.
* generated/product_r10.c: Regenerated.
* generated/product_r16.c: Regenerated.
* generated/product_r4.c: Regenerated.
* generated/product_r8.c: Regenerated.
* generated/reshape_c10.c: Regenerated.
* generated/reshape_c16.c: Regenerated.
* generated/reshape_c4.c: Regenerated.
* generated/reshape_c8.c: Regenerated.
* generated/reshape_i16.c: Regenerated.
* generated/reshape_i4.c: Regenerated.
* generated/reshape_i8.c: Regenerated.
* generated/reshape_r10.c: Regenerated.
* generated/reshape_r16.c: Regenerated.
* generated/reshape_r4.c: Regenerated.
* generated/reshape_r8.c: Regenerated.
* generated/shape_i16.c: Regenerated.
* generated/shape_i4.c: Regenerated.
* generated/shape_i8.c: Regenerated.
* generated/spread_c10.c: Regenerated.
* generated/spread_c16.c: Regenerated.
* generated/spread_c4.c: Regenerated.
* generated/spread_c8.c: Regenerated.
* generated/spread_i1.c: Regenerated.
* generated/spread_i16.c: Regenerated.
* generated/spread_i2.c: Regenerated.
* generated/spread_i4.c: Regenerated.
* generated/spread_i8.c: Regenerated.
* generated/spread_r10.c: Regenerated.
* generated/spread_r16.c: Regenerated.
* generated/spread_r4.c: Regenerated.
* generated/spread_r8.c: Regenerated.
* generated/sum_c10.c: Regenerated.
* generated/sum_c16.c: Regenerated.
* generated/sum_c4.c: Regenerated.
* generated/sum_c8.c: Regenerated.
* generated/sum_i1.c: Regenerated.
* generated/sum_i16.c: Regenerated.
* generated/sum_i2.c: Regenerated.
* generated/sum_i4.c: Regenerated.
* generated/sum_i8.c: Regenerated.
* generated/sum_r10.c: Regenerated.
* generated/sum_r16.c: Regenerated.
* generated/sum_r4.c: Regenerated.
* generated/sum_r8.c: Regenerated.
* generated/transpose_c10.c: Regenerated.
* generated/transpose_c16.c: Regenerated.
* generated/transpose_c4.c: Regenerated.
* generated/transpose_c8.c: Regenerated.
* generated/transpose_i16.c: Regenerated.
* generated/transpose_i4.c: Regenerated.
* generated/transpose_i8.c: Regenerated.
* generated/transpose_r10.c: Regenerated.
* generated/transpose_r16.c: Regenerated.
* generated/transpose_r4.c: Regenerated.
* generated/transpose_r8.c: Regenerated.
* generated/unpack_c10.c: Regenerated.
* generated/unpack_c16.c: Regenerated.
* generated/unpack_c4.c: Regenerated.
* generated/unpack_c8.c: Regenerated.
* generated/unpack_i1.c: Regenerated.
* generated/unpack_i16.c: Regenerated.
* generated/unpack_i2.c: Regenerated.
* generated/unpack_i4.c: Regenerated.
* generated/unpack_i8.c: Regenerated.
* generated/unpack_r10.c: Regenerated.
* generated/unpack_r16.c: Regenerated.
* generated/unpack_r4.c: Regenerated.
* generated/unpack_r8.c: Regenerated.

From-SVN: r148769

15 years agodump-noaddr.x (dump_compare): Use --dumpbase to put dump files in a subdirectory.
Uros Bizjak [Sun, 21 Jun 2009 19:10:30 +0000 (21:10 +0200)]
dump-noaddr.x (dump_compare): Use --dumpbase to put dump files in a subdirectory.

* gcc.c-torture/unsorted/dump-noaddr.x (dump_compare): Use --dumpbase
to put dump files in a subdirectory.
* gcc/testsuite/lib/gcc-dg.exp (cleanup-saved-temps): Also remove
".o" temporary files.

From-SVN: r148768

15 years agore PR fortran/39850 (Too strict checking for procedures as actual argument)
Janus Weil [Sun, 21 Jun 2009 19:05:35 +0000 (21:05 +0200)]
re PR fortran/39850 (Too strict checking for procedures as actual argument)

2009-06-21  Janus Weil  <janus@gcc.gnu.org>

PR fortran/39850
* interface.c (gfc_compare_interfaces): Take care of implicit typing
when checking the function attribute. Plus another bugfix.
(compare_parameter): Set attr.function and attr.subroutine according
to the usage of a procedure as actual argument.

2009-06-21  Janus Weil  <janus@gcc.gnu.org>

PR fortran/39850
* gfortran.dg/interface_19.f90: Add 'cleanup-modules'.
* gfortran.dg/interface_20.f90: Ditto.
* gfortran.dg/interface_21.f90: Ditto.
* gfortran.dg/interface_22.f90: Ditto.
* gfortran.dg/interface_30.f90: New.
* gfortran.dg/proc_ptr_11.f90: Fix invalid test case.

From-SVN: r148767

15 years agofre-vce-1.c: Cleanup "fre" tree dump.
Uros Bizjak [Sun, 21 Jun 2009 17:38:47 +0000 (19:38 +0200)]
fre-vce-1.c: Cleanup "fre" tree dump.

* gcc.dg/tree-ssa/fre-vce-1.c: Cleanup "fre" tree dump.
* gcc.dg/vect/vect-shift-2.c: Cleanup "vect" tree dump.
* gcc.dg/vect/vect.exp (VECT_SLP_CFLAGS): Initialize with original
DEFAULT_VECTFLAGS.

From-SVN: r148766

15 years agofuture: New.
Jonathan Wakely [Sun, 21 Jun 2009 14:02:09 +0000 (14:02 +0000)]
future: New.

2009-06-21  Jonathan Wakely  <jwakely.gcc@gmail.com>

* include/std/future: New.
* include/Makefile.am: Add.
* include/Makefile.in: Regenerate.
* src/future.cc: New.
* src/Makefile.am: Add.
* src/Makefile.in: Regenerate.
* config/abi/pre/gnu.ver: Add export.
* testsuite/30_threads/headers/future/std_c++0x_neg.cc: New.
* testsuite/30_threads/headers/future/types_std_c++0x.cc: New.
* testsuite/30_threads/packaged_task/cons/1.cc: New.
* testsuite/30_threads/packaged_task/cons/2.cc: New.
* testsuite/30_threads/packaged_task/cons/assign_neg.cc: New.
* testsuite/30_threads/packaged_task/cons/copy_neg.cc: New.
* testsuite/30_threads/packaged_task/cons/move_assign.cc: New.
* testsuite/30_threads/packaged_task/cons/move.cc: New.
* testsuite/30_threads/packaged_task/members/boolconv.cc: New.
* testsuite/30_threads/packaged_task/members/get_future.cc: New.
* testsuite/30_threads/packaged_task/members/get_future2.cc: New.
* testsuite/30_threads/packaged_task/members/invoke.cc: New.
* testsuite/30_threads/packaged_task/members/invoke2.cc: New.
* testsuite/30_threads/packaged_task/members/invoke3.cc: New.
* testsuite/30_threads/packaged_task/members/invoke4.cc: New.
* testsuite/30_threads/packaged_task/members/invoke5.cc: New.
* testsuite/30_threads/packaged_task/members/reset.cc: New.
* testsuite/30_threads/packaged_task/members/reset2.cc: New.
* testsuite/30_threads/packaged_task/members/swap.cc: New.
* testsuite/30_threads/packaged_task/requirements/
explicit_instantiation.cc: New.
* testsuite/30_threads/promise/cons/1.cc: New.
* testsuite/30_threads/promise/cons/assign_neg.cc: New.
* testsuite/30_threads/promise/cons/copy_neg.cc: New.
* testsuite/30_threads/promise/cons/move_assign.cc: New.
* testsuite/30_threads/promise/cons/move.cc: New.
* testsuite/30_threads/promise/members/get_future.cc: New.
* testsuite/30_threads/promise/members/get_future2.cc: New.
* testsuite/30_threads/promise/members/set_exception.cc: New.
* testsuite/30_threads/promise/members/set_exception2.cc: New.
* testsuite/30_threads/promise/members/set_value.cc: New.
* testsuite/30_threads/promise/members/set_value2.cc: New.
* testsuite/30_threads/promise/members/set_value3.cc: New.
* testsuite/30_threads/promise/members/swap.cc: New.
* testsuite/30_threads/promise/requirements/
explicit_instantiation.cc: New.
* testsuite/30_threads/shared_future/cons/assign_neg.cc: New.
* testsuite/30_threads/shared_future/cons/copy.cc: New.
* testsuite/30_threads/shared_future/cons/default_neg.cc: New.
* testsuite/30_threads/shared_future/cons/move.cc: New.
* testsuite/30_threads/shared_future/members/get.cc: New.
* testsuite/30_threads/shared_future/members/get2.cc: New.
* testsuite/30_threads/shared_future/members/has_exception.cc: New.
* testsuite/30_threads/shared_future/members/has_value.cc: New.
* testsuite/30_threads/shared_future/members/is_ready.cc: New.
* testsuite/30_threads/shared_future/members/wait.cc: New.
* testsuite/30_threads/shared_future/members/wait_for.cc: New.
* testsuite/30_threads/shared_future/members/wait_until.cc: New.
* testsuite/30_threads/shared_future/requirements/
explicit_instantiation.cc: New.
* testsuite/30_threads/unique_future/cons/assign_neg.cc: New.
* testsuite/30_threads/unique_future/cons/copy_neg.cc: New.
* testsuite/30_threads/unique_future/cons/default_neg.cc: New.
* testsuite/30_threads/unique_future/cons/move.cc: New.
* testsuite/30_threads/unique_future/members/get.cc: New.
* testsuite/30_threads/unique_future/members/get2.cc: New.
* testsuite/30_threads/unique_future/members/has_exception.cc: New.
* testsuite/30_threads/unique_future/members/has_value.cc: New.
* testsuite/30_threads/unique_future/members/is_ready.cc: New.
* testsuite/30_threads/unique_future/members/wait.cc: New.
* testsuite/30_threads/unique_future/members/wait_for.cc: New.
* testsuite/30_threads/unique_future/members/wait_until.cc: New.
* testsuite/30_threads/unique_future/requirements/
explicit_instantiation.cc: New.
* testsuite/performance/30_threads/future/polling.cc: New.

From-SVN: r148765

15 years ago[multiple changes]
Arnaud Charlet [Sun, 21 Jun 2009 13:19:57 +0000 (15:19 +0200)]
[multiple changes]

2009-06-21  Thomas Quinot  <quinot@adacore.com>

* exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
Factor out code to new subprogram...
(Exp_Util.Find_Init_Call): New shared routine to find the init proc call
for a default initialized variable.
(Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
entity that has an associated freeze node.
(Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
If there is an init call for the object, defer it to the object freeze
point.
(Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
name clash with new subprogram introduced in Exp_Util.

2009-06-21  Robert Dewar  <dewar@adacore.com>

* einfo.ads: Minor reformatting

From-SVN: r148764

15 years ago[multiple changes]
Arnaud Charlet [Sun, 21 Jun 2009 13:11:41 +0000 (15:11 +0200)]
[multiple changes]

2009-06-21  Ed Falis  <falis@adacore.com>

* env.c (__gnat_environ): return NULL for vThreads - unimplemented

2009-06-21  Eric Botcazou  <ebotcazou@adacore.com>

* einfo.ads: Update comments.

2009-06-21  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
where the controlling formal is of private class-wide type whose
completion is a synchronized type can be converted into direct calls.

2009-06-21  Vincent Celier  <celier@adacore.com>

* gnatcmd.adb (Check_Files): When all sources of the project are to be
indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
of sources using -files=, so that the distinction can be made by the
tool of a call with no source (to display the usage) from a call with
a project file that contains no source.

2009-06-21  Jerome Lambourg  <lambourg@adacore.com>

* exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
case of VM convention arrays.

From-SVN: r148763

15 years agoFix 40359
Ira Rosen [Sun, 21 Jun 2009 11:36:03 +0000 (11:36 +0000)]
Fix 40359

Co-Authored-By: Revital Eres <eres@il.ibm.com>
From-SVN: r148762

15 years agore PR middle-end/38729 (long time needed in tree canonical iv)
Richard Guenther [Sun, 21 Jun 2009 10:22:08 +0000 (10:22 +0000)]
re PR middle-end/38729 (long time needed in tree canonical iv)

2009-06-21  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/38729
* tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
to loops with a single exit if -fno-expensive-optimizations.

From-SVN: r148761

15 years agovar-tracking.c (struct shared_hash_def, [...]): New types.
Jakub Jelinek [Sun, 21 Jun 2009 09:38:34 +0000 (11:38 +0200)]
var-tracking.c (struct shared_hash_def, [...]): New types.

* var-tracking.c (struct shared_hash_def, shared_hash): New types.
(dataflow_set): Change vars type from htab_t to shared_hash.
(shared_hash_pool, empty_shared_hash): New variables.
(vars_clear): Removed.
(shared_hash_shared, shared_hash_htab, shared_hash_copy,
shared_hash_find_slot_unshare, shared_hash_find_slot,
shared_hash_find_slot_noinsert, shared_hash_find): New
static inlines.
(shared_hash_unshare, shared_hash_destroy): New functions.
(unshare_variable): Unshare set->vars if shared, use
shared_hash_htab.
(vars_copy): Use htab_traverse_noresize instead of htab_traverse.
(get_init_value, find_src_set_src, dump_dataflow_set,
clobber_variable_part, emit_notes_for_differences): Use
shared_hash_htab.
(dataflow_set_init): Remove second argument, set vars to
empty_shared_hash instead of creating a new htab.
(dataflow_set_clear): Call shared_hash_destroy and set vars
to empty_shared_hash instead of calling vars_clear.
(dataflow_set_copy): Don't call vars_copy, instead just share
the src htab with dst.
(variable_union): Use shared_hash_*, use initially NO_INSERT
lookup if set->vars is shared.  Don't keep slot cleared before
calling unshare_variable.  Unshare set->vars if needed.
Even ->refcount == 1 vars must be unshared if set->vars is shared
and var needs to be modified.
(variable_canonicalize): New function.
(dataflow_set_union): If dst->vars is empty, just share src->vars
with dst->vars and traverse with variable_canonicalize to canonicalize
and unshare what is needed.
(dataflow_set_different): If old_set and new_set use the same shared
htab, they aren't different.  If number of htab elements is different,
htabs are different.  Use shared_hash_*.
(dataflow_set_destroy): Call shared_hash_destroy instead of
htab_delete.
(compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
second argument to dataflow_set_init.
(vt_initialize): Likewise.  Initialize shared_hash_pool and
empty_shared_hash, move bb in/out initialization afterwards.
Use variable_htab_free instead of NULL as changed_variables del hook.
(variable_was_changed): Change type of second argument to pointer to
dataflow_set.  When inserting var into changed_variables, bump
refcount.  Unshare set->vars if set is shared htab and slot needs to
be cleared.
(set_variable_part): Use shared_hash_*, use initially NO_INSERT
lookup if set->vars is shared.  Unshare set->vars if needed.
Even ->refcount == 1 vars must be unshared if set->vars is shared
and var needs to be modified.  Adjust variable_was_changed caller.
(delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
vars must be unshared if set->vars is shared and var needs to be
modified.  Adjust variable_was_changed caller.
(emit_note_insn_var_location): Don't pool_free var.
(emit_notes_for_differences_1): Initialize empty_var->refcount to 0
instead of 1.
(vt_finalize): Call htab_delete on empty_shared_hash->htab and
free_alloc_pool on shared_hash_pool.

From-SVN: r148760

15 years agohashtab.c (htab_traverse): Don't call htab_expand for nearly empty hashtabs with...
Jakub Jelinek [Sun, 21 Jun 2009 09:37:31 +0000 (11:37 +0200)]
hashtab.c (htab_traverse): Don't call htab_expand for nearly empty hashtabs with sizes 7, 13 or 31.

* hashtab.c (htab_traverse): Don't call htab_expand for
nearly empty hashtabs with sizes 7, 13 or 31.

From-SVN: r148759

15 years agore PR testsuite/40475 (gcc.dg/vect/vect-nest-cycle-[12].c)
Ira Rosen [Sun, 21 Jun 2009 07:25:21 +0000 (07:25 +0000)]
re PR testsuite/40475 (gcc.dg/vect/vect-nest-cycle-[12].c)

PR testsuite/40475
* gcc.dg/vect/vect-nest-cycle-1.c: Fail to vectorize on targets
without misalignment support.
* gcc.dg/vect/vect-nest-cycle-2.c: Likewise.

From-SVN: r148758

15 years ago2009-06-20 Paolo Carlini <paolo.carlini@oracle.com>
Paolo Carlini [Sun, 21 Jun 2009 00:57:56 +0000 (00:57 +0000)]
2009-06-20  Paolo Carlini  <paolo.carlini@oracle.com>

* Revert last Change.

From-SVN: r148756

15 years agoDaily bump.
GCC Administrator [Sun, 21 Jun 2009 00:16:48 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r148755

15 years agore PR libstdc++/40497 ([C++0x] troubles with std::next / std::prev declarations)
Paolo Carlini [Sat, 20 Jun 2009 22:27:04 +0000 (22:27 +0000)]
re PR libstdc++/40497 ([C++0x] troubles with std::next / std::prev declarations)

2009-06-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/40497
* include/bits/stl_iterator_base_funcs.h (next, prev): Fix the
signature per the current C++1x draft (N2857).
* testsuite/24_iterators/operations/40497.cc: Add.

From-SVN: r148751

15 years agore PR fortran/40452 (-fbounds-check: False positive due to ignoring storage association)
Tobias Burnus [Sat, 20 Jun 2009 18:07:10 +0000 (20:07 +0200)]
re PR fortran/40452 (-fbounds-check: False positive due to ignoring storage association)

2009-06-20  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40452
        * trans-decl.c (add_argument_checking): Disable bounds check
        for allowed argument storage association.

2009-06-20  Tobias Burnus  <burnus@net-b.de>

        PR fortran/40452
        * gfortran.dg/bounds_check_strlen_9.f90: New test.

From-SVN: r148750

15 years agoFixes for moxie sfp and memory loads
Anthony Green [Sat, 20 Jun 2009 17:08:15 +0000 (17:08 +0000)]
Fixes for moxie sfp and memory loads

From-SVN: r148749

15 years agotree-ssa-structalias.c (find_func_aliases): For memset use a constraint from NULL...
Richard Guenther [Sat, 20 Jun 2009 12:03:16 +0000 (12:03 +0000)]
tree-ssa-structalias.c (find_func_aliases): For memset use a constraint from NULL if we memset to zero.

2009-06-20  Richard Guenther  <rguenther@suse.de>

* tree-ssa-structalias.c (find_func_aliases): For memset use
a constraint from NULL if we memset to zero.
* tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
we explicitly handle that do not read from memory.
(call_may_clobber_ref_p_1): Properly handle builtins that may
set errno.

From-SVN: r148747

15 years ago* a-nudira.adb: Minor reformatting
Robert Dewar [Sat, 20 Jun 2009 10:45:27 +0000 (10:45 +0000)]
* a-nudira.adb: Minor reformatting

From-SVN: r148746

15 years ago[multiple changes]
Arnaud Charlet [Sat, 20 Jun 2009 10:32:58 +0000 (12:32 +0200)]
[multiple changes]

2009-06-20  Ed Schonberg  <schonberg@adacore.com>

* exp_ch3.adb (Build_Record_Init_Proc): When copying initial
expressions (possibly from a parent type) indicate that the scope of
the new itypes is the initialization procedure being built.

2009-06-20  Robert Dewar  <dewar@adacore.com>

* a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
Needs_64, and now computed without anomolies for some dynamic types.

2009-06-20  Thomas Quinot  <quinot@adacore.com>

* sem_prag.adb: Minor reformatting

* exp_disp.ads: Minor reformatting

From-SVN: r148745

15 years agosem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a function call...
Ed Schonberg [Sat, 20 Jun 2009 10:21:36 +0000 (10:21 +0000)]
sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a function call is a legal expression to initialize...

2009-06-20  Ed Schonberg  <schonberg@adacore.com>

* sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
function call is a legal expression to initialize a limited object.

* exp_ch3.adb: Rename various freeze operations that perform expansion
actions, to prevent confusion with subprograms in the freeze package.

From-SVN: r148744

15 years ago[multiple changes]
Arnaud Charlet [Sat, 20 Jun 2009 10:18:00 +0000 (12:18 +0200)]
[multiple changes]

2009-06-20  Ed Schonberg  <schonberg@adacore.com>

* sem.adb (Walk_Library_Units): Check instantiations first.

* sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
private primitive if it is a function with a controlling result that is
a type extension with progenitors.

* exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
a primitive operation of a synchronized tagged type that has a
controlling result.

2009-06-20  Thomas Quinot  <quinot@adacore.com>

* einfo.ads: Fix typo.

2009-06-20  Ed Falis  <falis@adacore.com>

* s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.

From-SVN: r148743

15 years agore PR tree-optimization/40495 (libgomp.c++/task-4.C)
Richard Guenther [Sat, 20 Jun 2009 09:31:23 +0000 (09:31 +0000)]
re PR tree-optimization/40495 (libgomp.c++/task-4.C)

2009-06-20  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/40495
* tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
(new_scalar_tmp_constraint_exp): New function.
(process_constraint): Do not create temporary decls.
(process_all_all_constraints): Likewise.
(handle_const_call): Likewise.
(create_function_info_for): Do not set decl.

From-SVN: r148742

15 years agors6000.c (rs6000_explicit_options): Make static.
Ian Lance Taylor [Sat, 20 Jun 2009 01:23:50 +0000 (01:23 +0000)]
rs6000.c (rs6000_explicit_options): Make static.

* config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
(rs6000_attribute_table): Make static; move before use.

From-SVN: r148738

15 years agoDaily bump.
GCC Administrator [Sat, 20 Jun 2009 00:16:48 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r148737