toon [Sat, 31 Oct 2009 13:51:48 +0000 (13:51 +0000)]
2009-10-31 Toon Moene <toon@moene.org>
* ipa-inline.c (cgraph_decide_inlining):
Include reason for not inlining called-once functions in dump file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153776
138bc75d-0d04-0410-961f-
82ee72b054a4
gerald [Sat, 31 Oct 2009 12:00:44 +0000 (12:00 +0000)]
* doc/xml/manual/intro.xml: Refer to our bugs page instead of
Bugzilla directly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153775
138bc75d-0d04-0410-961f-
82ee72b054a4
hutchinsonandy [Sat, 31 Oct 2009 00:38:10 +0000 (00:38 +0000)]
PR target/41885
* gcc.target/avr/torture/pr41885.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153773
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Sat, 31 Oct 2009 00:18:33 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153772
138bc75d-0d04-0410-961f-
82ee72b054a4
jb [Fri, 30 Oct 2009 22:37:47 +0000 (22:37 +0000)]
PR libfortran/41219 Fix build warnings
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153769
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Fri, 30 Oct 2009 22:23:59 +0000 (22:23 +0000)]
/gcc/cp
2009-10-30 Jerry Quinn <jlquinn@optonline.net>
* mangle.c (mangle_type_string_for_rtti): Reapply 153734.
(needs_fake_anon): Likewise.
(write_name): Likewise.
(write_nested_name): Likewise.
* cp-tree.h (mangle_type_string_for_rtti): Likewise.
(get_anonymous_namespace): Likewise.
* name-lookup.c (get_anonymous_namespace_name): Likewise.
* rtti.c (tinfo_name): Likewise, with +1 in the second
build_string call fixed.
(tinfo_base_init): Likewise.
libstdc++/
2009-10-30 Jerry Quinn <jlquinn@optonline.net>
* libsupc++/tinfo.cc (operator=(const type_info&)): Reapply 153734.
* libsupc++/typeinfo (type_info::name()): Likewise.
* libsupc++/tinfo2.cc (before): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153768
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Fri, 30 Oct 2009 21:31:23 +0000 (21:31 +0000)]
2009-10-30 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/random.h: Fix typo in static_assert text.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153767
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Fri, 30 Oct 2009 20:03:09 +0000 (20:03 +0000)]
* config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
* config/arm/bpapi.h (BE8_LINK_SPEC): New define.
(LINK_SPEC): BE_LINK_SPEC added.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153766
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Fri, 30 Oct 2009 18:45:25 +0000 (18:45 +0000)]
Revert:
* decl.c (cp_fname_init): Correct build_string argument.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153765
138bc75d-0d04-0410-961f-
82ee72b054a4
espindola [Fri, 30 Oct 2009 18:29:37 +0000 (18:29 +0000)]
2009-10-30 Rafael Avila de Espindola <espindola@google.com>
PR41871
* lto-plugin.c (claim_file_handler): Close files that we created.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153764
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Fri, 30 Oct 2009 17:39:18 +0000 (17:39 +0000)]
2009-10-30 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/41759
* include/bits/random.h: Tweak a bit the text of some static_asserts.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153762
138bc75d-0d04-0410-961f-
82ee72b054a4
ktietz [Fri, 30 Oct 2009 16:47:40 +0000 (16:47 +0000)]
2009-10-30 Kai Tietz <kai.tietz@onevision.com>
* configure.ac: Disable target-winsup & co for
x86_64-*-mingw* and *-w64-mingw* targets.
* configure: Regenerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153761
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Fri, 30 Oct 2009 15:58:57 +0000 (15:58 +0000)]
2009-10-30 Richard Guenther <rguenther@suse.de>
PR lto/41858
* lto-streamer.h (struct lto_file_decl_data): Remove fd member.
lto/
* lto.c (lto_file_read): Do not set file_data->fd.
(lto_read_section_data): Use a single-entry file-descriptor cache.
Do not check the result of xmalloc.
(free_section_data): Do not use file_data->fd.
(lto_read_all_file_options): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153758
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Fri, 30 Oct 2009 15:08:27 +0000 (15:08 +0000)]
* gcc-interface/utils.c (MAX_FIXED_MODE_SIZE): Delete.
(create_field_decl): Update description. In a packed record, round
the size up to a byte boundary only if the field's type has BLKmode.
* gcc-interface/gigi.h (create_field_decl): Update description.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153755
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Fri, 30 Oct 2009 14:57:57 +0000 (14:57 +0000)]
Fix a typo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153754
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Fri, 30 Oct 2009 14:55:10 +0000 (14:55 +0000)]
* target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
* config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
label.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153753
138bc75d-0d04-0410-961f-
82ee72b054a4
nathan [Fri, 30 Oct 2009 14:53:53 +0000 (14:53 +0000)]
* lib/target-supports.exp: Handle powerpc-*-elf.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153752
138bc75d-0d04-0410-961f-
82ee72b054a4
jamborm [Fri, 30 Oct 2009 14:38:48 +0000 (14:38 +0000)]
2009-10-30 Martin Jambor <mjambor@suse.cz>
* tree-sra.c (build_ref_for_offset_1): Remove a comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153751
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Fri, 30 Oct 2009 14:32:26 +0000 (14:32 +0000)]
Optimize -mstackrealign.
gcc/
2009-10-30 H.J. Lu <hongjiu.lu@intel.com>
PR target/40836
* cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
first. Move assert on stack_alignment_estimated just before
setting stack_realign_needed.
(gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
Don't call update_stack_boundary.
* config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
(verride_options): Don't check ix86_force_align_arg_pointer here.
(ix86_function_ok_for_sibcall): Use it.
(ix86_update_stack_boundary): Likewise.
* config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
gcc/testsuite/
2009-10-30 H.J. Lu <hongjiu.lu@intel.com>
PR target/40838
* gcc.target/i386/incoming-6.c: New.
* gcc.target/i386/incoming-7.c: Likewise.
* gcc.target/i386/incoming-8.c: Likewise.
* gcc.target/i386/incoming-9.c: Likewise.
* gcc.target/i386/incoming-10.c: Likewise.
* gcc.target/i386/incoming-11.c: Likewise.
* gcc.target/i386/incoming-12.c: Likewise.
* gcc.target/i386/incoming-13.c: Likewise.
* gcc.target/i386/incoming-14.c: Likewise.
* gcc.target/i386/incoming-15.c: Likewise.
* gcc.target/i386/pr37843-4.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153750
138bc75d-0d04-0410-961f-
82ee72b054a4
charlet [Fri, 30 Oct 2009 13:58:19 +0000 (13:58 +0000)]
2009-10-30 Emmanuel Briot <briot@adacore.com>
* make.adb (Start_Compile_If_Possible): Compute location of resulting
ALI file in this procedure instead of after the compilation itself,
since the current directory might have changed in between when using
-j<n>.
* osint.ads: Addded missing alignment clause.
* adaint.c, adaint.h, osint.adb (__gnat_reset_attributes,
__gnat_size_of_file_attributes): Rename reset_attributes and
size_of_file_attributes.
2009-10-30 Javier Miranda <miranda@adacore.com>
* sem_scil.adb (Adjust_SCIL_Node): Add missing management of sequences
of statements when searching for SCIL nodes.
2009-10-30 Tristan Gingold <gingold@adacore.com>
* gnatlink.adb, link.c: By default use shared libgcc on darwin.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153749
138bc75d-0d04-0410-961f-
82ee72b054a4
charlet [Fri, 30 Oct 2009 13:49:17 +0000 (13:49 +0000)]
2009-10-30 Emmanuel Briot <briot@adacore.com>
* make.adb, osint.adb (Add_Lib_Search_Dir): Do not add if dir is
already in the list.
This saves system calls when looking for ALI files
(Scan_Make_Args): The parameter to gnatmake's -D is now converted to an
absolute PATH (so that the above improvement properly occurs if both
-D<dir> and -aO<dir> are specified).
2009-10-30 Thomas Quinot <quinot@adacore.com>
* a-direct.adb: Minor reformatting
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153748
138bc75d-0d04-0410-961f-
82ee72b054a4
charlet [Fri, 30 Oct 2009 13:44:40 +0000 (13:44 +0000)]
2009-10-30 Emmanuel Briot <briot@adacore.com>
* make.adb, adaint.c, adaint.h, osint.adb, osint.ads, bcheck.adb
(*_attr): new subprograms.
(File_Length, File_Time_Stamp, Is_Writable_File): new subprograms
(Read_Library_Info_From_Full, Full_Library_Info_Name,
Full_Source_Name): Now benefit from a previous cache of the file
attributes, to further save on system calls.
(Smart_Find_File): now also cache the file attributes. This makes the
package File_Stamp_Hash_Table useless, and it was removed.
(Compile_Sources): create subprograms for the various steps of the main
loop, for readibility and to avoid sharing variables between the
various steps.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153747
138bc75d-0d04-0410-961f-
82ee72b054a4
charlet [Fri, 30 Oct 2009 13:36:19 +0000 (13:36 +0000)]
2009-10-30 Emmanuel Briot <briot@adacore.com>
* make.adb, osint.adb, osint.ads (Library_File_Stamp): Removed, since
unused.
(Read_Library_Info_From_Full): New subprogram.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153746
138bc75d-0d04-0410-961f-
82ee72b054a4
charlet [Fri, 30 Oct 2009 13:30:32 +0000 (13:30 +0000)]
Remove executable property.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153745
138bc75d-0d04-0410-961f-
82ee72b054a4
charlet [Fri, 30 Oct 2009 13:27:40 +0000 (13:27 +0000)]
2009-10-30 Robert Dewar <dewar@adacore.com>
* a-tideio.adb: Minor reformatting
* a-wtdeio.adb, a-ztdeio.adb: Update comments, code clean up.
* a-reatim.adb, a-tideau.adb, a-ngelfu.adb, a-ztdeau.adb, a-ngrear.adb,
a-wtedit.adb, a-ststio.adb, a-ztedit.adb: Minor code reorganization
(use conditional expressions).
2009-10-30 Ed Schonberg <schonberg@adacore.com>
* gnat_ugn.texi: Additional info on gnatw.i and gnatw.I
* sem_case.adb: Improved error message.
2009-10-30 Emmanuel Briot <briot@adacore.com>
* a-direct.adb, gnatcmd.adb, gnatname.adb, makeutl.adb, opt.ads,
osint.adb, prj-ext.adb, switch-m.adb (Follow_Links_For_Dirs): Now
defaults to False, and controlled by -eL.
* a-direct.adb: Add comments.
* osint.adb (File_Stamp): Avoid unneeded duplicate system call
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153744
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Fri, 30 Oct 2009 13:12:08 +0000 (13:12 +0000)]
2009-10-30 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/type_traits (__is_convertible_simple): Remove.
(__is_convertible_helper): Adjust.
* testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
dg-error line numbers.
* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153743
138bc75d-0d04-0410-961f-
82ee72b054a4
jlquinn [Fri, 30 Oct 2009 12:20:38 +0000 (12:20 +0000)]
2009-10-30 Jerry Quinn <jlquinn@optonline.net>
* libsupc++/tinfo.cc (operator=(const type_info&)): Revert 153734.
* libsupc++/typeinfo (type_info::name()): Likewise.
* libsupc++/tinfo2.cc (before): Likewise.
2009-10-30 Jerry Quinn <jlquinn@optonline.net>
* mangle.c (mangle_type_string_for_rtti): Revert 153734.
(needs_fake_anon): Likewise.
(write_name): Likewise.
(write_nested_name): Likewise.
* cp-tree.h (mangle_type_string_for_rtti): Likewise.
(get_anonymous_namespace): Likewise.
* name-lookup.c (get_anonymous_namespace_name): Likewise.
* rtti.c (tinfo_name): Likewise.
(tinfo_base_init): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153742
138bc75d-0d04-0410-961f-
82ee72b054a4
charlet [Fri, 30 Oct 2009 12:02:11 +0000 (12:02 +0000)]
2009-10-30 Robert Dewar <dewar@adacore.com>
* sem_res.adb (Resolve_Type_Conversion): Avoid false positive when
converting non-static subtype to "identical" static subtype.
2009-10-30 Ed Schonberg <schonberg@adacore.com>
* usage.adb: Add -gnatw.i switch.
2009-10-30 Vincent Celier <celier@adacore.com>
* xsnamest.adb: Update comments with regards to the template files
snames.*.tmpl
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153741
138bc75d-0d04-0410-961f-
82ee72b054a4
charlet [Fri, 30 Oct 2009 11:57:55 +0000 (11:57 +0000)]
2009-10-30 Bob Duff <duff@adacore.com>
* s-fileio.adb (Errno_Message): Suppress VMS-specific warning.
2009-10-30 Ed Schonberg <schonberg@adacore.com>
* sem_case.adb (Check_Choices): Add explanatory message when there are
missing alternatives when the required range of alternatives is given
by the base type of the case expression or discriminant in a variant
part.
* opt.ads: New flag Warn_On_Overlap, to enable warnings on potentially
dangerous overlap between actuals in a call, activated by -gnatw.i
* sem_warn.adb (Set_Dot_Warning_Switch): set flag.
(Warn_On_Overlapping_Actuals): use new flag.
* gnat_ugn.texi: Document -gnatw.i, warning on overlapping actuals
2009-10-30 Robert Dewar <dewar@adacore.com>
* exp_aggr.adb, exp_ch9.adb: Minor reformatting
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153740
138bc75d-0d04-0410-961f-
82ee72b054a4
rearnsha [Fri, 30 Oct 2009 09:16:36 +0000 (09:16 +0000)]
* arm.md (QHSI): New mode iterator.
(movqi): If generating for thumb, then truncate any immediate to
8 bits.
* thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
with...
(thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
version.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153739
138bc75d-0d04-0410-961f-
82ee72b054a4
dodji [Fri, 30 Oct 2009 07:08:36 +0000 (07:08 +0000)]
Fix PR c++/41863
gcc/cp/ChangeLog:
PR c++/41863
* pt.c (iterative_hash_template_arg): articifial parms
don't have DECL_PARM_INDEX set. Do not hash it.
gcc/testsuite/ChangeLog:
PR c++/41863
* g++.dg/template/sizeof12.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153735
138bc75d-0d04-0410-961f-
82ee72b054a4
jlquinn [Fri, 30 Oct 2009 05:17:50 +0000 (05:17 +0000)]
2009-10-28 Jerry Quinn <jlquinn@optonline.net>
* mangle.c (mangle_type_string_for_rtti): Revert r149964.
(needs_fake_anon): Likewise.
(write_name): Likewise.
(write_nested_name): Likewise.
* cp-tree.h (mangle_type_string_for_rtti): Likewise.
(get_anonymous_namespace): Likewise.
* name-lookup.c (get_anonymous_namespace_name): Likewise.
* rtti.c (tinfo_name): Insert '*' in front of private names.
(tinfo_base_init): Use it.
2009-10-28 Jerry Quinn <jlquinn@optonline.net>
* libsupc++/tinfo.cc (operator=(const type_info&)): Compare by
pointer if name begins with '*'.
* libsupc++/typeinfo (type_info::name()): Likewise.
* libsupc++/tinfo2.cc (before): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153734
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Fri, 30 Oct 2009 02:29:14 +0000 (02:29 +0000)]
2009-10-29 Paolo Carlini <paolo.carlini@oracle.com>
Douglas Gregor <doug.gregor@gmail.com>
PR libstdc++/40925 (again)
* include/bits/stl_pair.h (pair<_T1, _T2>::pair(_U1&&, const _T2&),
pair<_T1, _T2>::pair(const _T1&, _U2&&)): Add, to deal correctly
with move-only types in the presence of "null pointers".
* testsuite/20_util/pair/40925.cc: Extend.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153733
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Fri, 30 Oct 2009 00:26:44 +0000 (00:26 +0000)]
Mention PR
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153732
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Fri, 30 Oct 2009 00:16:44 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153731
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Thu, 29 Oct 2009 23:23:29 +0000 (23:23 +0000)]
2009-10-29 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/type_traits (__is_int_or_cref): Remove.
(__is_convertible_helper): Fix per C++0x and simplify (the hack to
suppress warnings isn't necessary anymore).
* testsuite/20_util/is_convertible/requirements/typedefs.cc: New.
* testsuite/20_util/is_convertible/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/is_convertible/value.cc: Likewise.
* testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
dg-error line numbers.
* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153728
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Thu, 29 Oct 2009 19:45:36 +0000 (19:45 +0000)]
2009-10-29 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/20_util/pair/40925.cc: Minor comment fix.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153727
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Thu, 29 Oct 2009 19:26:04 +0000 (19:26 +0000)]
2009-10-29 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/40925
* include/bits/stl_pair.h (pair<_T1, _T2>::pair(_U1&&, _U2&&)):
Use enable_if to remove it from the overload set when either _U1
is not convertible to _T1 or _U2 is not convertible to _T2.
(pair<>::pair(_U1&&, _Arg0&&, _Args&&...)): Remove.
2009-10-29 Douglas Gregor <doug.gregor@gmail.com>
PR libstdc++/40925
* testsuite/20_util/pair/40925.cc: Add.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153725
138bc75d-0d04-0410-961f-
82ee72b054a4
jvdelisle [Thu, 29 Oct 2009 19:20:18 +0000 (19:20 +0000)]
2009-10-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/41711
* libgfortran.h: Define larger sizes for BOZ conversion buffers.
* io/write.c (extract_uint): Include case where size is 10 if integer
is large enough. (write_int): Rename to write_boz. (write_boz): Factor
out extract_uint and delete the conversion function.
(btoa_big): New binary conversion function.
(otoa_big): New octal conversion function.
(ztoa_big): New hexidecimal conversion function.
(write_b): Modify to use new function.
(write_o): Likewise.
(write_z): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153724
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Thu, 29 Oct 2009 18:41:44 +0000 (18:41 +0000)]
Fix typo
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153723
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Thu, 29 Oct 2009 18:36:21 +0000 (18:36 +0000)]
* gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
create integer types with precision 0.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153722
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Thu, 29 Oct 2009 18:28:49 +0000 (18:28 +0000)]
* gcc-interface/decl.c (array_type_has_nonaliased_component): Swap
parameters and rewrite comments. For a derived type, return the
setting of its parent type.
(gnat_to_gnu_entity): Do an alias set copy for derived types if they
are composite. Adjust calls to above function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153721
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Thu, 29 Oct 2009 18:17:18 +0000 (18:17 +0000)]
* gcc-interface/trans.c (Attribute_to_gnu) <Attr_Object_Size>: Do not
return the RM size for padded types.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153720
138bc75d-0d04-0410-961f-
82ee72b054a4
ccoutant [Thu, 29 Oct 2009 18:13:27 +0000 (18:13 +0000)]
gcc/ChangeLog:
PR debug/41700
* dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
locations in the source).
(store_vcall_insn): New function.
(lookup_vcall_insn): New function.
(dwarf2out_virtual_call_token): Use store_vcall_insn.
(dwarf2out_copy_call_info): New function.
(dwarf2out_virtual_call): Use lookup_vcall_insn.
* emit-rtl.c (try_split): Call copy_call_info debug hook.
* debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
* debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
(debug_nothing_rtx_rtx): New dummy hook.
* dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
(xcoff_debug_hooks): Likewise.
* sdbout.c (sdb_debug_hooks): Likewise.
* vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153719
138bc75d-0d04-0410-961f-
82ee72b054a4
daney [Thu, 29 Oct 2009 17:39:52 +0000 (17:39 +0000)]
2009-10-29 David Daney <ddaney@caviumnetworks.com>
* doc/invoke.texi (mmcount-ra-address): Document new command line
option.
* config/mips/mips.opt (mmcount-ra-address): New option.
* config/mips/mips-protos.h (mips_function_profiler): Declare new
function.
* config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
member.
(mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
(mips_function_profiler): Moved from FUNCTION_PROFILER, and
rewritten.
* config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
mips_function_profiler.
2009-10-29 David Daney <ddaney@caviumnetworks.com>
* gcc.target/mips/mips.exp (mips_option_groups): Add
mcount-ra-address.
* gcc.target/mips/mmcount-ra-address-1.c: New test.
* gcc.target/mips/mmcount-ra-address-2.c: New test.
* gcc.target/mips/mmcount-ra-address-3.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153717
138bc75d-0d04-0410-961f-
82ee72b054a4
sje [Thu, 29 Oct 2009 16:44:02 +0000 (16:44 +0000)]
2009-10-29 Steve Ellcey <sje@cup.hp.com>
PR middle-end/37565
PR target/38018
* doc/tm.texi (OVERRIDE_OPTIONS): Update.
(TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
* optc-gen.awk (cl_target_option_restore): Include call to
targetm.override_options_after_change.
* target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
* target.h (override_options_after_change): New.
* c-common.c (parse_optimize_options): Call
targetm.override_options_after_change.
* config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
(ia64_override_options_after_change): New.
(ia64_override_options) Add call to above.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153714
138bc75d-0d04-0410-961f-
82ee72b054a4
matz [Thu, 29 Oct 2009 16:41:10 +0000 (16:41 +0000)]
* tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
(gate_convert_to_rsqrt): Ditto.
(pass_convert_to_rsqrt): Ditto.
* tree-pass.h (pass_convert_to_rsqrt): Don't declare.
* passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
to pass list.
* config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
testsuite/
* gcc.target/i386/sse-recip.c: Use fabsf instead of != .
* gcc.target/i386/sse-recip-vec.c: Ditto.
* gcc.target/i386/brokensqrt.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153713
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Thu, 29 Oct 2009 15:57:12 +0000 (15:57 +0000)]
* gcc.dg/testsuite/i386/cold-attribute-4.s: Remove.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153707
138bc75d-0d04-0410-961f-
82ee72b054a4
burnus [Thu, 29 Oct 2009 15:24:38 +0000 (15:24 +0000)]
2009-10-29 Tobias Burnus <burnus@net-b.de>
PR fortran/41777
* trans-expr.c
* (gfc_conv_procedure_call,gfc_conv_expr_reference):
Use for generic EXPR_FUNCTION the attributes of the specific
function.
2009-10-29 Tobias Burnus <burnus@net-b.de>
PR fortran/41777
gfortran.dg/associated_target_3.f90: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153706
138bc75d-0d04-0410-961f-
82ee72b054a4
charlet [Thu, 29 Oct 2009 14:42:50 +0000 (14:42 +0000)]
2009-10-28 Robert Dewar <dewar@adacore.com>
* sem_type.adb: Minor reformatting
2009-10-28 Arnaud Charlet <charlet@adacore.com>
* exp_ch9.adb (Build_Task_Proc_Specification): Generate a different
suffix for task type bodies.
2009-10-28 Ed Schonberg <schonberg@adacore.com>
* exp_aggr.adb (Convert_Aggr_In_Allocator): Do not look for a
finalization list if the designated type requires no control actions,
to prevent a useless semantic dependence on ada.tags.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153705
138bc75d-0d04-0410-961f-
82ee72b054a4
ramana [Thu, 29 Oct 2009 14:01:58 +0000 (14:01 +0000)]
2009-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
* config/arm/arm.c (find_best_start): Fix type of remainder to
be unsigned .
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153704
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Thu, 29 Oct 2009 13:15:51 +0000 (13:15 +0000)]
2009-10-29 Paolo Carlini <paolo.carlini@oracle.com>
* include/decimal/decimal: Minor formatting and uglification fixes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153702
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Thu, 29 Oct 2009 13:07:21 +0000 (13:07 +0000)]
2009-10-29 Paolo Carlini <paolo.carlini@oracle.com>
* include/decimal/decimal: Minor formatting and uglification fixes.
* include/decimal/decimal.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153701
138bc75d-0d04-0410-961f-
82ee72b054a4
espindola [Thu, 29 Oct 2009 12:58:54 +0000 (12:58 +0000)]
2009-10-29 Rafael Avila de Espindola <espindola@google.com>
* gfortran.dg/lto/pr41764_0.f: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153700
138bc75d-0d04-0410-961f-
82ee72b054a4
jamborm [Thu, 29 Oct 2009 12:40:48 +0000 (12:40 +0000)]
2009-10-29 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/41775
* tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
(generate_subtree_copies): Do not unshare agg.
(load_assign_lhs_subreplacements): Do not unshare rhs.
(sra_modify_assign): Do not unshare exprs.
(propagate_subacesses_accross_link): Renamed to
propagate_subaccesses_across_link.
* testsuite/g++.dg/torture/pr41775.C: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153699
138bc75d-0d04-0410-961f-
82ee72b054a4
rearnsha [Thu, 29 Oct 2009 09:44:36 +0000 (09:44 +0000)]
* arm.c (count_insns_for_constant): Rework to support counting for
thumb2 immediates as well.
(find_best_start): Split out from arm_gen_constant.
(arm_gen_constant): Rework to support XOR with immediate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153698
138bc75d-0d04-0410-961f-
82ee72b054a4
chaoyingfu [Thu, 29 Oct 2009 07:08:03 +0000 (07:08 +0000)]
2009-10-29 Chao-ying Fu <fu@mips.com>
* config/mips/mips.c (mips_emit_unary, mips_force_unary): New
functions.
(mips_expand_synci_loop): Use the length rtx to control the
synci loop from the begin rtx that points to the first byte of
the cache line.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153696
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Thu, 29 Oct 2009 00:17:14 +0000 (00:17 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153694
138bc75d-0d04-0410-961f-
82ee72b054a4
jb [Wed, 28 Oct 2009 23:25:08 +0000 (23:25 +0000)]
PR fortran/41860 Treat vars as save with -fno-automatic
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153689
138bc75d-0d04-0410-961f-
82ee72b054a4
espindola [Wed, 28 Oct 2009 21:41:34 +0000 (21:41 +0000)]
2009-10-28 Rafael Avila de Espindola <espindola@google.com>
* lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
LDPL_ERROR
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153687
138bc75d-0d04-0410-961f-
82ee72b054a4
espindola [Wed, 28 Oct 2009 21:39:41 +0000 (21:39 +0000)]
2009-10-28 Rafael Avila de Espindola <espindola@google.com>
* doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153686
138bc75d-0d04-0410-961f-
82ee72b054a4
espindola [Wed, 28 Oct 2009 20:44:47 +0000 (20:44 +0000)]
2009-10-28 Rafael Avila de Espindola <espindola@google.com>
* trans-common.c (create_common): Set TREE_PUBLIC to false on
fake variables.
2009-10-28 Rafael Avila de Espindola <espindola@google.com>
* dbxout.c (dbxout_common_check): Accept non public trees.
* dwarf2out.c (fortran_common): Accept non public trees.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153685
138bc75d-0d04-0410-961f-
82ee72b054a4
espindola [Wed, 28 Oct 2009 18:40:42 +0000 (18:40 +0000)]
2009-10-28 Rafael Avila de Espindola <espindola@google.com>
* common.opt (fuse-linker-plugin): New option.
* gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
fuse-linker-plugin.
* opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153683
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 28 Oct 2009 18:39:36 +0000 (18:39 +0000)]
Core issue 812, 861
* name-lookup.c (set_decl_namespace): Deal properly with inline
namespaces.
(qualified_lookup_using_namespace): Overhaul.
* pt.c (print_candidates): Handle getting an OVERLOAD.
change lookup algorithm
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153682
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 28 Oct 2009 18:39:25 +0000 (18:39 +0000)]
* decl.c (cp_fname_init): Correct build_string argument.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153681
138bc75d-0d04-0410-961f-
82ee72b054a4
bonzini [Wed, 28 Oct 2009 16:44:08 +0000 (16:44 +0000)]
2009-10-28 Paolo Bonzini <bonzini@gnu.org>
PR rtl-optimization/39715
* config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
(gen_cstoresi_ltu_thumb1): New splitter.
2009-10-28 Paolo Bonzini <bonzini@gnu.org>
PR rtl-optimization/39715
* gcc.target/arm/thumb-ltu.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153678
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Wed, 28 Oct 2009 14:48:34 +0000 (14:48 +0000)]
2009-10-28 Richard Guenther <rguenther@suse.de>
PR lto/41808
PR lto/41839
* tree-ssa.c (useless_type_conversion_p): Do not treat
conversions to pointers to incomplete types as useless.
* gimple.c (gimple_types_compatible_p): Compare struct tags,
not typedef names.
* gcc.dg/lto/
20091027-1_0.c: New testcase.
* gcc.dg/lto/
20091027-1_1.c: Likewise.
* g++.dg/lto/
20091026-1_0.C: Likewise.
* g++.dg/lto/
20091026-1_1.C: Likewise.
* g++.dg/lto/
20091026-1_a.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153671
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 28 Oct 2009 14:45:03 +0000 (14:45 +0000)]
PR middle-end/41837
* ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
fields don't have DECL_NAME.
* gcc.dg/pr41837.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153670
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 28 Oct 2009 14:43:04 +0000 (14:43 +0000)]
PR debug/41801
* builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
call convert_memory_address on addr.
* g++.dg/ext/sync-3.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153669
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 28 Oct 2009 14:39:06 +0000 (14:39 +0000)]
PR target/41762
* config/i386/i386.c (ix86_pic_register_p): Don't call
rtx_equal_for_cselib_p for VALUEs discarded as useless.
* gcc.dg/pr41762.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153667
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 28 Oct 2009 14:37:24 +0000 (14:37 +0000)]
* var-tracking.c (emit_note_insn_var_location): Don't call the second
vt_expand_loc unnecessarily when location is not a register nor
memory.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153666
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 28 Oct 2009 14:36:28 +0000 (14:36 +0000)]
* var-tracking.c (emit_note_insn_var_location): Get the mode of
a variable part from its REG, MEM or VALUE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153665
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Wed, 28 Oct 2009 14:33:17 +0000 (14:33 +0000)]
2009-10-28 Richard Guenther <rguenther@suse.de>
* gimple.c (gimple_get_alias_set): Fix comment typo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153664
138bc75d-0d04-0410-961f-
82ee72b054a4
charlet [Wed, 28 Oct 2009 14:22:09 +0000 (14:22 +0000)]
2009-10-28 Bob Duff <duff@adacore.com>
* s-fileio.adb: Give more information in exception messages.
2009-10-28 Robert Dewar <dewar@adacore.com>
* gnat_ugn.texi: Document new -gnatyt requirement for space after right
paren if next token starts with digit or letter.
* styleg.adb (Check_Right_Paren): New rule for space after if next
character is a letter or digit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153663
138bc75d-0d04-0410-961f-
82ee72b054a4
charlet [Wed, 28 Oct 2009 14:14:05 +0000 (14:14 +0000)]
2009-10-28 Thomas Quinot <quinot@adacore.com>
* s-crtl.ads (System.CRTL.strerror): New function.
2009-10-28 Ed Schonberg <schonberg@adacore.com>
* sem_type.adb: Add guard to recover some type errors.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153662
138bc75d-0d04-0410-961f-
82ee72b054a4
charlet [Wed, 28 Oct 2009 14:09:12 +0000 (14:09 +0000)]
2009-10-28 Vincent Celier <celier@adacore.com>
* prj-nmsc.adb (Add_To_Or_Remove_From_List): New name of procedure
Add_If_Not_In_List to account to the fact that a directory may be
removed from the list. Only remove directory if Removed is True.
2009-10-28 Gary Dismukes <dismukes@adacore.com>
* a-textio.ads, a-textio.ads: Put back function EOF_Char in private
part. Put back body of function EOF_Char.
* a-tienau.adb: Remove with of Interfaces.C_Streams and change EOF back
to EOF_Char.
2009-10-28 Emmanuel Briot <briot@adacore.com>
* prj-tree.adb (Free): Fix memory leak.
2009-10-28 Thomas Quinot <quinot@adacore.com>
* s-fileio.adb: Minor reformatting
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153661
138bc75d-0d04-0410-961f-
82ee72b054a4
charlet [Wed, 28 Oct 2009 14:07:16 +0000 (14:07 +0000)]
* gcc-interface/Make-lang.in: Update dependencies.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153660
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Wed, 28 Oct 2009 13:52:20 +0000 (13:52 +0000)]
2009-10-28 Richard Guenther <rguenther@suse.de>
* tree.c (free_lang_data_in_type): Do not call get_alias_set.
(free_lang_data): Unconditionally compute alias sets for all
standard integer types. Bail out if gate bailed out previously.
Do not reset the types_compatible_p langhook.
(gate_free_lang_data): Remove.
(struct pass_ipa_free_lang_data): Enable unconditionally.
* gimple.c (gimple_get_alias_set): Use the same alias-set for
all pointer types.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153659
138bc75d-0d04-0410-961f-
82ee72b054a4
charlet [Wed, 28 Oct 2009 13:50:10 +0000 (13:50 +0000)]
2009-10-28 Robert Dewar <dewar@adacore.com>
* exp_attr.adb, exp_ch9.adb, prj-nmsc.adb, tbuild.adb, ali.adb,
types.ads: Minor reformatting
2009-10-28 Tristan Gingold <gingold@adacore.com>
* init.c: Fix __gnat_error_handler for Darwin10 (Snow Leopard)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153658
138bc75d-0d04-0410-961f-
82ee72b054a4
charlet [Wed, 28 Oct 2009 13:41:05 +0000 (13:41 +0000)]
2009-10-28 Thomas Quinot <quinot@adacore.com>
* exp_ch4.adb (Expand_N_Type_Conversion): Perform Integer promotion for
the operand of the unary minus and ABS operators.
* sem_type.adb (Covers): A concurrent type and its corresponding record
type are compatible.
* exp_attr.adb (Expand_N_Attribute_Reference): Do not rewrite a 'Access
attribute reference for the current instance of a protected type while
analyzing an access discriminant constraint in a component definition.
Such a reference is handled in the corresponding record's init proc,
while initializing the constrained component.
* exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
corresponding record type, propagate components'
Has_Per_Object_Constraint flag.
* exp_ch3.adb (Build_Init_Procedure.Build_Init_Statements):
For a concurrent type, set up concurrent aspects before initializing
components with a per object constrain, because they may be controlled,
and their initialization may call entries or protected subprograms of
the enclosing concurrent object.
2009-10-28 Emmanuel Briot <briot@adacore.com>
* prj-nmsc.adb (Add_If_Not_In_List): New subprogram, for better sharing
of code.
(Find_Source_Dirs): resolve links if Opt.Follow_Links_For_Dirs when
processing the directories specified explicitly in the project file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153657
138bc75d-0d04-0410-961f-
82ee72b054a4
charlet [Wed, 28 Oct 2009 13:31:51 +0000 (13:31 +0000)]
2009-10-28 Robert Dewar <dewar@adacore.com>
* a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb,
a-textio.ads, a-textio.adb: Reorganize (moving specs from private part
to body).
(Initialize_Standard_Files): New procedure.
* a-tienau.adb: Minor change to make EOF directly visible
* a-tirsfi.ads, a-wrstfi.adb, a-wrstfi.ads, a-zrstfi.adb,
a-zrstfi.ads, a-tirsfi.adb: New unit, initial version.
* gnat_rm.texi: Add documentation for
Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files.
* Makefile.rtl: Add entries for
Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files
2009-10-28 Thomas Quinot <quinot@adacore.com>
* exp_ch9.ads: Minor reformatting
* sem_ch3.adb: Minor reformatting
* sem_aggr.adb: Minor reformatting.
* sem_attr.adb: Minor reformatting
* tbuild.adb, tbuild.ads, par-ch4.adb, exp_ch4.adb (Tbuild.New_Op_Node):
New subprogram.
Minor code reorganization/factoring.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153656
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Wed, 28 Oct 2009 13:28:32 +0000 (13:28 +0000)]
2009-10-28 Richard Guenther <rguenther@suse.de>
PR middle-end/41855
* tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
(ref_maybe_used_by_call_p_1): Fix bcopy handling.
(call_may_clobber_ref_p_1): Likewise.
* tree-ssa-structalias.c (find_func_aliases): Likewise.
* alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
* gfortran.dg/lto/
20091028-1_0.f90: New testcase.
* gfortran.dg/lto/
20091028-1_1.c: Likewise.
* gfortran.dg/lto/
20091028-2_0.f90: Likewise.
* gfortran.dg/lto/
20091028-2_1.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153655
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Wed, 28 Oct 2009 13:07:00 +0000 (13:07 +0000)]
2009-10-28 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/stl_iterator_base_funcs.h: (next): Change
template parameter name consistently with the resolution
of DR 1011 ([Ready] in Santa Cruz).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153654
138bc75d-0d04-0410-961f-
82ee72b054a4
bonzini [Wed, 28 Oct 2009 12:37:30 +0000 (12:37 +0000)]
2009-10-28 Paolo Bonzini <bonzini@gnu.org>
PR rtl-optimization/41812
Revert:
2009-06-27 Paolo Bonzini <bonzini@gnu.org>
* df-problems.c (df_md_scratch): New.
(df_md_alloc, df_md_free): Allocate/free it.
(df_md_local_compute): Only include live registers in init.
(df_md_transfer_function): Prune the in-set computed by
the confluence function, and the gen-set too.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153652
138bc75d-0d04-0410-961f-
82ee72b054a4
bonzini [Wed, 28 Oct 2009 10:27:15 +0000 (10:27 +0000)]
2009-10-28 Paolo Bonzini <bonzini@gnu.org>
PR rtl-optimization/39715
* combine.c (simplify_comparison): Use extensions to
widen comparisons. Try an ANDing first.
testsuite:
2009-10-28 Paolo Bonzini <bonzini@gnu.org>
PR rtl-optimization/39715
* gcc.target/arm/thumb-bitfld1.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153651
138bc75d-0d04-0410-961f-
82ee72b054a4
bonzini [Wed, 28 Oct 2009 10:17:29 +0000 (10:17 +0000)]
2009-10-28 Paolo Bonzini <bonzini@gnu.org>
PR rtl-optimization/40741
* config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
a small constant is cheap.
* config/arm/arm.md (andsi3, iorsi3): Try to place the result of
force_reg on the LHS.
(xorsi3): Likewise, and split the XOR if the constant is complex
and not in Thumb mode.
2009-10-28 Paolo Bonzini <bonzini@gnu.org>
PR rtl-optimization/40741
* gcc.target/arm/thumb-branch1.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153650
138bc75d-0d04-0410-961f-
82ee72b054a4
singler [Wed, 28 Oct 2009 10:04:03 +0000 (10:04 +0000)]
2009-10-28 Johannes Singler <singler@kit.edu>
PR libstdc++/40852
* include/parallel/multiseq_selection.h
(multiseq_partition, multiseq_selection): Avoid intermediate
values exceeding the integer type range for very large inputs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153648
138bc75d-0d04-0410-961f-
82ee72b054a4
bonzini [Wed, 28 Oct 2009 09:54:01 +0000 (09:54 +0000)]
2009-10-28 Paolo Bonzini <bonzini@gnu.org>
* expmed.c (emit_store_flag): Check costs before
transforming to the opposite representation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153647
138bc75d-0d04-0410-961f-
82ee72b054a4
bonzini [Wed, 28 Oct 2009 09:49:58 +0000 (09:49 +0000)]
2009-10-28 Paolo Bonzini <bonzini@gnu.org>
* config/sh/sh.md (cbranchfp4_media): Remove hack extending
cstore result to DImode.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153646
138bc75d-0d04-0410-961f-
82ee72b054a4
kkojima [Wed, 28 Oct 2009 04:22:21 +0000 (04:22 +0000)]
* config/sh/sh.md (stuff_delay_slot): Move const_int pattern
inside the unspec vector.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153643
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Wed, 28 Oct 2009 00:16:59 +0000 (00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153621
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Tue, 27 Oct 2009 23:25:54 +0000 (23:25 +0000)]
* cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153618
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Tue, 27 Oct 2009 21:58:09 +0000 (21:58 +0000)]
Allow no-capture lambdas to convert to function pointer.
* semantics.c (maybe_add_lambda_conv_op): New.
* parser.c (cp_parser_lambda_expression): Call it.
(cp_parser_lambda_declarator_opt): Make op() static if
no captures.
* mangle.c (write_closure_type_name): Adjust.
* semantics.c (finish_this_expr): Adjust.
* decl.c (grok_op_properties): Allow it.
* call.c (build_user_type_conversion_1): Handle static conversion op.
(build_op_call): And op().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153617
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Tue, 27 Oct 2009 20:24:31 +0000 (20:24 +0000)]
* gcc-interface/decl.c (purpose_member_field): New static function.
(annotate_rep): Use it instead of purpose_member.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153616
138bc75d-0d04-0410-961f-
82ee72b054a4
rth [Tue, 27 Oct 2009 20:09:07 +0000 (20:09 +0000)]
PR c++/41819
* tree-eh.c (eh_region_may_contain_throw_map): Rename from
eh_region_may_contain_throw; update users.
(eh_region_may_contain_throw): New function.
(lower_catch): Check flag_exceptions before creating exception region.
(lower_eh_filter, lower_eh_must_not_throw): Likewise.
(lower_cleanup): Tidy existing flag_exceptions check to match.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153615
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Tue, 27 Oct 2009 19:41:13 +0000 (19:41 +0000)]
* raise-gcc (db_region_for): Use _Unwind_GetIPInfo instead of
_Unwind_GetIP if HAVE_GETIPINFO is defined.
(db_action_for): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153613
138bc75d-0d04-0410-961f-
82ee72b054a4
espindola [Tue, 27 Oct 2009 18:17:13 +0000 (18:17 +0000)]
2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
PR lto/41652
* configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153610
138bc75d-0d04-0410-961f-
82ee72b054a4
ktietz [Tue, 27 Oct 2009 17:14:47 +0000 (17:14 +0000)]
2009-10-27 Kai Tietz <kai.tietz@onevision.com>
PR/41799
* config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
* config/i386/mingw.opt: Add fset-stack-executable.
* config/i386/i386.c (ix86_trampoline_init): Make call to
emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
defined and its value is not zero.
* doc/invoke.texi
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153606
138bc75d-0d04-0410-961f-
82ee72b054a4
uros [Tue, 27 Oct 2009 17:03:47 +0000 (17:03 +0000)]
* ChangeLog: Fix formatting.
* testsuite/ChangeLog: Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153604
138bc75d-0d04-0410-961f-
82ee72b054a4
rguenth [Tue, 27 Oct 2009 15:52:44 +0000 (15:52 +0000)]
2009-10-27 Richard Guenther <rguenther@suse.de>
* tree-ssa-structalias.c (find_func_aliases): In IPA mode
handle calls to externally visible functions like in regular mode.
(create_variable_info_for): Do not create function infos here.
(have_alias_info): Remove write-only variable.
(solve_constraints): New function split out from common code
in compute_points_to_sets and ipa_pta_execute.
(compute_points_to_sets): Adjust.
(ipa_pta_execute): Likewise. Handle clones and externally visible
functions like in non-IPA mode.
* gcc.dg/torture/ipa-pta-1.c: Adjust testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153600
138bc75d-0d04-0410-961f-
82ee72b054a4