Commit Graph

96688 Commits

Author SHA1 Message Date
Andreas Tobler
2265f64613 re PR libffi/41908 (closures fail for some structure arguments containing floats)
2009-11-02  Andreas Tobler  <a.tobler@schweiz.org>

	PR libffi/41908
	* testsuite/libffi.call/testclosure.c: New test.

From-SVN: r153824
2009-11-02 22:18:17 +01:00
Dodji Seketeli
9d5874cf05 re PR c++/37093 (ICE with pointer to member template parameters)
Fix PR c++/37093

gcc/cp/ChangeLog:

	PR c++/37093
	* pt.c (check_valid_ptrmem_cst_expr): New function.
	(convert_nontype_argument): Use it to output an error for
	illegal pointer to member expressions used as template arguments.

gcc/testsuite/ChangeLog:

	PR c++/37093
	* g++.dg/other/ptrmem10.C: New test.
	* g++.dg/other/ptrmem11.C: Likewise.

From-SVN: r153822
2009-11-02 20:55:02 +01:00
Janis Johnson
5815841f11 re PR testsuite/41878 (ERROR: gfortran.dg/vect/vect-2.f90)
PR testsuite/41878
	* gfortran.dg/vect/vect-2.f90: Fix effective-target expression, add
	spaces in some expressions.

From-SVN: r153821
2009-11-02 19:32:05 +00:00
Ralf Wildenhues
f3392d5350 Work with defaulted $prefix (NONE) in libjava.
libjava/:
	PR bootstrap/38867
	* configure.ac (expanded_prefix): New variable, set to the
	default prefix if none was passed on the command line.
	* configure: Regenerate.

From-SVN: r153820
2009-11-02 18:52:08 +00:00
Jason Merrill
e150c4144c * c-c++-common/dfp/pr35620.c: Give the union a name.
From-SVN: r153818
2009-11-02 11:52:57 -05:00
Jason Merrill
1eee69dd71 Restrict DR 757 change to C++0x mode.
* decl2.c (mark_used): Check cxx_dialect.
	* decl.c (grokfndecl): Do check type linkage in C++98 mode.
	(grokvardecl): Likewise.
	* pt.c (check_instantiated_arg): Likewise.

From-SVN: r153816
2009-11-02 11:14:26 -05:00
Ulrich Weigand
d7c0c068dd re PR tree-optimization/41857 (Loop optimizer breaks __ea pointers with -mea64)
gcc/
	PR tree-optimization/41857
	* tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
	* tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
	to create_mem_ref.
	* tree-ssa-address.c (move_hint_to_base): New function.
	(most_expensive_mult_to_index): Add TYPE argument.  Use mode and
	address space associated with TYPE.
	(addr_to_parts): Add TYPE and BASE_HINT arguments.  Pass TYPE to
	most_expensive_mult_to_index.  Call move_hint_to_base.
	(create_mem_ref): Add BASE_HINT argument.  Pass BASE_HINT and
	TYPE to addr_to_parts.

gcc/testsuite/
	PR tree-optimization/41857
	* gcc.target/spu/ea/pr41857.c: New file.

From-SVN: r153810
2009-11-02 14:30:39 +00:00
Martin Jambor
2b93f88dc5 re PR tree-optimization/41750 (IPA-SRA is broken)
2009-11-02  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/41750
	* tree-sra.c (analyze_modified_params): Loop over all
	representatives of components of a parameter.

	* testsuite/gcc.c-torture/execute/pr41750.c: New test.

From-SVN: r153809
2009-11-02 15:13:49 +01:00
Jakub Jelinek
68052d59d6 re PR tree-optimization/41841 (segfault using '-O -fipa-cp -fipa-struct-reorg -fwhole-program -fprofile-generate')
PR tree-optimization/41841
	* ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
	local variables of not yet materialized clones.

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

From-SVN: r153807
2009-11-02 14:57:13 +01:00
Jakub Jelinek
0fba566cb5 re PR debug/41893 (ICE with -combine and debug)
PR debug/41893
	* cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
	for a VOIDmode variable.

	* gcc.dg/debug/pr41893-1.c: New test.
	* gcc.dg/debug/pr41893-2.c: New file.

From-SVN: r153806
2009-11-02 14:55:41 +01:00
Jakub Jelinek
9789ba46f6 re PR c++/41774 (ice: vector VEC(visibility,base) pop domain error, in pop_visibility at c-pragma.c:757)
PR c++/41774
	* c-pragma.c (visstack): Change into vector of ints rather than
	enum symbol_visibility.
	(push_visibility): Add kind argument, push default_visibility together
	with kind.
	(pop_visibility): Add kind argument, return true if successful, fail
	if visibility stack is empty or if stack top is of different kind.
	(handle_pragma_visibility): Don't check length of visstack, instead
	call pop_visibility and issue diagnostics if it failed.  Pass 0
	as last argument to push_visibility and pop_visibility.
	* c-pragma.h (push_visibility): Add kind argument.
	(pop_visibility): Likewise.  Return bool instead of void.

	* name-lookup.c (handle_namespace_attrs): Pass 1 as last argument to
	push_visibility.
	* parser.c (cp_parser_namespace_definition): Pass 1 as argument to
	pop_visibility.
	* rtti.c (push_abi_namespace): Pass 2 as last argument to
	push_visibility.
	(pop_abi_namespace): Pass 2 as argument to pop_visibility.

	* g++.dg/ext/visibility/namespace3.C: New test.

From-SVN: r153805
2009-11-02 14:39:46 +01:00
Jason Merrill
3f252b91b1 restrict-1.c: Move to c-c++-common.
* gcc.dg/tree-ssa/restrict-1.c: Move to c-c++-common.
	* gcc.dg/tree-ssa/restrict-2.c: Move to c-c++-common.
	* gcc.dg/tree-ssa/restrict-4.c: Move to c-c++-common.

From-SVN: r153800
2009-11-01 21:46:35 -05:00
GCC Administrator
d11e83e1f4 Daily bump.
From-SVN: r153799
2009-11-02 00:16:53 +00:00
Eric Botcazou
ebcc3d93d8 tree.def (TARGET_MEM_REF): Update comment.
* tree.def (TARGET_MEM_REF): Update comment.
	* alias.c (get_alias_set): Retrieve the original memory reference for
	a TARGET_MEM_REF before proceeding.

From-SVN: r153796
2009-11-01 22:12:07 +00:00
Tobias Burnus
958dd42b03 [multiple changes]
2009-11-01  Tobias Burnus  <burnus@net-b.de>                                            

        PR fortran/41872
        * trans-decl.c (gfc_trans_deferred_vars): Do not nullify
        autodeallocated allocatable scalars at the end of scope.
        (gfc_generate_function_code): Fix indention.
        * trans-expr.c (gfc_conv_procedure_call): For allocatable
        scalars, fix calling by reference and autodeallocating
        of intent out variables.

2009-11-01  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41872
        * gfortran.dg/allocatable_scalar_4.f90: New test.

From-SVN: r153795
2009-11-01 18:46:50 +01:00
Tobias Burnus
745ff31ff7 re PR fortran/41850 (Wrong-code with optional allocatable arrays)
2009-11-01  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41850
        * trans-expr.c (gfc_conv_procedure_call): Deallocate intent-out
        variables only when present. Remove unneccessary present check.

2009-11-01  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41850
        * gfortran.dg/intent_out_6.f90: New testcase.

From-SVN: r153793
2009-11-01 13:43:42 +01:00
Jason Merrill
164247b0e2 tree.c (cv_unqualified): New fn.
* tree.c (cv_unqualified): New fn.
	* cp-tree.h: Declare it.
	* typeck.c (decay_conversion): Use it instead of TYPE_MAIN_VARIANT.

From-SVN: r153790
2009-11-01 01:07:00 -04:00
Jason Merrill
c86f25e8ea * rtti.c (tinfo_name): Fix lengths for private case.
From-SVN: r153789
2009-11-01 01:06:52 -04:00
Jason Merrill
691a1b27dc re PR c++/41754 (initializer list internal compiler segfault)
PR c++/41754
	* call.c (compare_ics): Avoid bad union use when
	comparing two ck_lists.

From-SVN: r153788
2009-11-01 01:06:42 -04:00
Paolo Carlini
cc1e250414 chrono (struct __common_rep_type): New.
2009-10-31  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/std/chrono (struct __common_rep_type): New.
	(duration_cast(const duration<>&),
	duration<>::duration(const _Rep2&),
	duration<>::duration(const duration<>&),
	operator*(const duration<>&, const _Rep2&),
	operator*(const _Rep1&, const duration<>&),
	operator/(const duration<>&, const _Rep2&),
	time_point_cast(const time_point<>&)): Implement resolution of
	DR 1177 ([Ready] in Santa Cruz), change to not participate to
	overload resolution if the constraints are not met. 
	* testsuite/20_util/duration/cons/1_neg.cc: Adjust dg-errors.
	* testsuite/20_util/duration/cons/dr974.cc: Likewise.
	* testsuite/20_util/duration/requirements/typedefs_neg1.cc: Adjust
	dg-error line numbers.
	* testsuite/20_util/duration/requirements/typedefs_neg2.cc: Likewise.
	* testsuite/20_util/duration/requirements/typedefs_neg3.cc: Likewise.

From-SVN: r153787
2009-11-01 00:35:40 +00:00
GCC Administrator
5645baec40 Daily bump.
From-SVN: r153786
2009-11-01 00:16:47 +00:00
Anatoly Sokolov
219d92a41f frv.c (frv_function_value, [...]): New functions.
* config/frv/frv.c (frv_function_value, frv_libcall_value,
	frv_function_value_regno_p): New functions.
	(TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
	* config/frv/frv.h: (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
	(FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
	* config/frv/frv-protos.h (frv_function_value_regno_p): Declare.

From-SVN: r153783
2009-11-01 01:35:53 +03:00
Anatoly Sokolov
34732b0ade mn10300.c (mn10300_function_value): Make static, add new 'outgoing' argument.
* config/mn10300/mn10300.c (mn10300_function_value): Make static, add
	new 'outgoing' argument.
	(mn10300_libcall_value, mn10300_function_value_regno_p): New
	functions.
	(TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
	* config/mn10300/mn10300.h: (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
	LIBCALL_VALUE): Remove.
	(FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
	* config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
	(mh10300_function_value_regno_p): Declare.

From-SVN: r153782
2009-11-01 00:56:14 +03:00
Ramana Radhakrishnan
46527cc82c A9 integer pipeline description.
2009-10-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        * config/arm/cortex-a9.md: New - integer pipeline description.

From-SVN: r153779
2009-10-31 16:40:03 +00:00
Eric Botcazou
03472fddff tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of aborting if the sizes of the two references don't match.
* tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
	aborting if the sizes of the two references don't match.

From-SVN: r153777
2009-10-31 15:42:14 +00:00
Toon Moene
2e57e8534f ipa-inline.c (cgraph_decide_inlining): Include reason for not inlining called-once functions in dump file.
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.

From-SVN: r153776
2009-10-31 13:51:48 +00:00
Gerald Pfeifer
2c42b33914 intro.xml: Refer to our bugs page instead of Bugzilla directly.
* doc/xml/manual/intro.xml: Refer to our bugs page instead of
	Bugzilla directly.

From-SVN: r153775
2009-10-31 12:00:44 +00:00
Andy Hutchinson
ee817a8bd2 re PR target/41885 (AVR Rotate patterns do not correctly consider overlap.)
PR target/41885
* gcc.target/avr/torture/pr41885.c: New test.

From-SVN: r153773
2009-10-31 00:38:10 +00:00
GCC Administrator
c405f6cdf3 Daily bump.
From-SVN: r153772
2009-10-31 00:18:33 +00:00
Janne Blomqvist
23db99134a PR libfortran/41219 Fix build warnings
From-SVN: r153769
2009-10-31 00:37:47 +02:00
Jerry Quinn
52669d592b mangle.c (mangle_type_string_for_rtti): Reapply 153734.
/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.

From-SVN: r153768
2009-10-30 22:23:59 +00:00
Paolo Carlini
a20c8540db random.h: Fix typo in static_assert text.
2009-10-30  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/random.h: Fix typo in static_assert text.

From-SVN: r153767
2009-10-30 21:31:23 +00:00
Daniel Gutson
7664c548e6 linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
* 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.

From-SVN: r153766
2009-10-30 20:03:09 +00:00
Jason Merrill
f0b150bad3 revert: decl.c (cp_fname_init): Correct build_string argument.
Revert:
	* decl.c (cp_fname_init): Correct build_string argument.

From-SVN: r153765
2009-10-30 14:45:25 -04:00
Rafael Avila de Espindola
86ed04df82 re PR lto/41871 (lto-plugin gives: could not open/create temporary file)
2009-10-30  Rafael Avila de Espindola  <espindola@google.com>

	PR41871
	* lto-plugin.c (claim_file_handler): Close files that we created.

From-SVN: r153764
2009-10-30 18:29:37 +00:00
Paolo Carlini
f6d08b433b re PR libstdc++/41759 ([C++0x] <random> static_assert phrasing should be positive)
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.

From-SVN: r153762
2009-10-30 17:39:18 +00:00
Kai Tietz
ef4c43006d configure.ac: Disable target-winsup & co for x86_64-*-mingw* and *-w64-mingw* targets.
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.

From-SVN: r153761
2009-10-30 17:47:40 +01:00
Richard Guenther
b207f90082 re PR lto/41858 (-flto -O2 crashes when many source files.)
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.

From-SVN: r153758
2009-10-30 15:58:57 +00:00
Eric Botcazou
62f9f3cebf utils.c (MAX_FIXED_MODE_SIZE): Delete.
* 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.

From-SVN: r153755
2009-10-30 15:08:27 +00:00
H.J. Lu
e15f1ff6b0 Fix a typo.
From-SVN: r153754
2009-10-30 07:57:57 -07:00
Nathan Sidwell
8c686cf5e8 target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
* target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
	* config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
	label.

From-SVN: r153753
2009-10-30 14:55:10 +00:00
Andrew Jenner
954600248c * lib/target-supports.exp: Handle powerpc-*-elf.
From-SVN: r153752
2009-10-30 14:53:53 +00:00
Martin Jambor
3d158124d5 tree-sra.c (build_ref_for_offset_1): Remove a comment.
2009-10-30  Martin Jambor  <mjambor@suse.cz>

	* tree-sra.c (build_ref_for_offset_1): Remove a comment.

From-SVN: r153751
2009-10-30 15:38:48 +01:00
H.J. Lu
890b9b966c 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.

From-SVN: r153750
2009-10-30 07:32:26 -07:00
Arnaud Charlet
6528a7ede6 [multiple changes]
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.

From-SVN: r153749
2009-10-30 14:58:19 +01:00
Arnaud Charlet
cafdbd2e9d [multiple changes]
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

From-SVN: r153748
2009-10-30 14:49:17 +01:00
Emmanuel Briot
48263c9aa0 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.

From-SVN: r153747
2009-10-30 14:44:40 +01:00
Emmanuel Briot
b11cb5fd9e make.adb, [...] (Library_File_Stamp): Removed, since unused.
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.

From-SVN: r153746
2009-10-30 14:36:19 +01:00
Arnaud Charlet
1a163c4605 Remove executable property.
From-SVN: r153745
2009-10-30 14:30:32 +01:00
Arnaud Charlet
5fd3fd793a [multiple changes]
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

From-SVN: r153744
2009-10-30 14:27:40 +01:00