Commit Graph

95453 Commits

Author SHA1 Message Date
Jason Merrill 62906aaa5c tweak comment
From-SVN: r150940
2009-08-19 14:24:13 -04:00
Jason Merrill 595de3023d re PR c++/41119 (Revision 150805 failed 447.dealII in SPEC CPU 2006)
PR c++/41119
	PR c++/41120
	* decl2.c (mark_used): Increment function_depth during synthesis.
	* parser.c (cp_parser_default_argument): Not here.

From-SVN: r150939
2009-08-19 13:14:33 -04:00
Jakub Jelinek dc0c6451cd method.c (use_thunk): Call free_after_compilation after assemble_end_function.
* method.c (use_thunk): Call free_after_compilation after
	assemble_end_function.

	* config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
	free_after_compilation.
	* config/score/score7.c (score7_output_mi_thunk): Likewise.
	* config/score/score3.c (score3_output_mi_thunk): Likewise.
	* config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
	* config/mips/mips.c (mips_output_mi_thunk): Likewise.
	* config/sh/sh.c (sh_output_mi_thunk): Likewise.
	* config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
	* config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.

From-SVN: r150938
2009-08-19 17:27:48 +02:00
Ian Lance Taylor 9302a06142 md.texi (Insn Canonicalizations): Correct canonicalization of (plus (mult (neg B) C) A).
* doc/md.texi (Insn Canonicalizations): Correct canonicalization
	of (plus (mult (neg B) C) A).

From-SVN: r150937
2009-08-19 15:21:16 +00:00
Michael Matz 9600efe1a6 omp-low.c (optimize_omp_library_calls): Use types_compatible_p instead of comparing TYPE_MAIN_VARIANT for equality.
* omp-low.c (optimize_omp_library_calls): Use types_compatible_p
        instead of comparing TYPE_MAIN_VARIANT for equality.
        * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
        vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
        * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
        * gimplify.c (goa_lhs_expr_p): Ditto and use
        STRIP_USELESS_TYPE_CONVERSION.

From-SVN: r150936
2009-08-19 14:29:52 +00:00
Michael Matz 10174ddf5d tree-ssa-structalias.c (create_variable_info_for): Also mark first field in a struct.
* tree-ssa-structalias.c (create_variable_info_for): Also mark
        first field in a struct.
        (intra_create_variable_infos): Don't deal with flag_argument_noalias.

fortran/
        * trans-expr.c (gfc_conv_substring): Don't evaluate casted decl early,
        change order of length calculation to (end - start) + 1.
        (gfc_get_interface_mapping_array): Adjust call to
        gfc_get_nodesc_array_type.
        * trans-array.c (gfc_trans_create_temp_array,
        gfc_build_constant_array_constructor, gfc_conv_expr_descriptor): Ditto.
        * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Ditto.
        * trans.c (gfc_add_modify): Assignment between base type and nontarget
        type are equal enough.
        (gfc_call_malloc): Use prvoid_type_node for return value of
        __builtin_malloc.
        (gfc_allocate_with_status): Ditto.
        * trans-types.c (gfc_array_descriptor_base): Double size of this array.
        (gfc_init_types): Build prvoid_type_node.
        (gfc_build_array_type): New bool parameter "restricted".
        (gfc_get_nodesc_array_type): Ditto, build restrict qualified pointers,
        if it's true.
        (gfc_get_array_descriptor_base): Ditto.
        (gfc_get_array_type_bounds): Ditto.
        (gfc_sym_type): Use symbol attributes to feed calls to above functions.
        (gfc_get_derived_type): Ditto.
        * trans.h (struct lang_type): Add nontarget_type member.
        * trans-types.h (prvoid_type_node): Declare.
        (gfc_get_array_type_bounds, gfc_get_nodesc_array_type): Declare new
        parameter.
        * trans-decl.c (gfc_finish_var_decl): Give scalars that can't be
        aliased a type with a different alias set than the base type.
        (gfc_build_dummy_array_decl): Adjust call to gfc_get_nodesc_array_type.

testsuite/
        * gfortran.dg/vect/vect-gems.f90: New test.
        * gcc.dg/tree-ssa/alias-1.c: Remove, it checks something broken.

From-SVN: r150934
2009-08-19 10:17:33 +00:00
Tobias Burnus 693d54f279 re PR fortran/41102 (Ease error checking of included files located in the SYSTEM_INCLUDE_DIR/ending in .h)
2009-08-19  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41102
        omp_lib.h.in: Fix -std=f95 errors.

From-SVN: r150931
2009-08-19 08:38:29 +02:00
DJ Delorie 40986754d7 wrapper.exp: Move load of target-libpath.exp from here...
* lib/wrapper.exp: Move load of target-libpath.exp from here...
* lib/gcc-defs.exp: ... to here.

From-SVN: r150929
2009-08-18 21:40:24 -04:00
GCC Administrator 75f1f22501 Daily bump.
From-SVN: r150925
2009-08-19 00:17:03 +00:00
Alexandre Oliva 5830150a57 * compare-debug: Drop .eh_frame relocations too.
From-SVN: r150901
2009-08-18 19:44:04 +00:00
H.J. Lu c2d88223c8 re PR testsuite/40704 (^M? in testsuite log leads to binary attachment)
2009-08-18  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/40704
	* test_summary: Filter out "\r".

From-SVN: r150898
2009-08-18 12:40:48 -07:00
DJ Delorie 488b329c8f wrapper.exp (${tool}_maybe_build_wrapper): Set up GCC_EXEC_PREFIX before building the wrapper.
* lib/wrapper.exp (${tool}_maybe_build_wrapper): Set up
GCC_EXEC_PREFIX before building the wrapper.

From-SVN: r150889
2009-08-18 14:36:58 -04:00
Uros Bizjak e72cee90d5 alpha.c (alpha_output_mi_thunk_osf): Allocate insn locators before emit_insn is called.
* config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
	locators before emit_insn is called.  Remove assert that
	cfun->is_thunk.
	(alpha_end_function): Clear crtl->emit structure and free insn
	locators if cfun->is_thunk is true.

From-SVN: r150883
2009-08-18 19:50:44 +02:00
Jason Merrill e31bcd1b96 elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object type if available.
* config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
	type if available.
	* configure.ac: Test for it.
	* configure, config.in: Regenerate.
	* doc/install.texi: Document --enable-gnu-unique-object.

From-SVN: r150882
2009-08-18 13:01:36 -04:00
Nathan Froyd 8fd962e39c vect.exp: Add new stanza for aligned-section-anchors-* tests.
* gcc.dg/vect/vect.exp: Add new stanza for aligned-section-anchors-*
	tests.
	* gcc.dg/vect/section-anchors-nest-1.c: Rename to...
	* gcc.dg/vect/aligned-section-anchors-nest-1.c: ...this.  Remove
	dg-options.  Fix dg-final clause.

From-SVN: r150880
2009-08-18 16:58:35 +00:00
Uros Bizjak f0962d64ac cdce3.C: Add -mieee for alpha*-*-* targets.
* g++.dg/cdce3.C: Add -mieee for alpha*-*-* targets.

From-SVN: r150877
2009-08-18 17:57:25 +02:00
Janus Weil 37513ce90a re PR fortran/40870 ([F03] include formal args in backend_decl of PPCs)
2009-08-18  Janus Weil  <janus@gcc.gnu.org>
	    Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/40870
	* trans-types.c (gfc_get_ppc_type): Include formal args in backend_decl
	using the interface symbol. Character types are returned by reference.
	(gfc_get_derived_type): Prevent infinite recursion loop
	if a PPC has a derived-type formal arg.

2009-08-18  Janus Weil  <janus@gcc.gnu.org>
	    Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/40870
	* gfortran.dg/proc_ptr_comp_13.f90: Extended.


Co-Authored-By: Paul Thomas <pault@gcc.gnu.org>

From-SVN: r150875
2009-08-18 16:23:35 +02:00
Richard Guenther 776e717416 re PR middle-end/41094 (Erroneous optimization of pow() with -ffast-math)
2009-08-18  Richard Guenther  <rguenther@suse.de>

	PR middle-end/41094
	* builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
	pow(x,y*z) only if x is nonnegative.

	* gcc.dg/torture/pr41094.c: New testcase.
	* gcc.dg/torture/builtin-power-1.c: Adjust.
	* gcc.dg/builtins-10.c: Likewise.

From-SVN: r150874
2009-08-18 13:40:18 +00:00
Jakub Jelinek f3252b3c18 re PR target/40971 (ICE in memory_address)
PR target/40971
	* config/rs6000/rs6000.c (rs6000_legitimize_address): For
	[DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.

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

From-SVN: r150869
2009-08-18 13:42:07 +02:00
Jakub Jelinek 68a315304b bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump on jumps.
* bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
	on jumps.

From-SVN: r150868
2009-08-18 13:16:46 +02:00
GCC Administrator fb3e79b2b3 Daily bump.
From-SVN: r150866
2009-08-18 00:16:57 +00:00
DJ Delorie 65655f7921 m32c.md (UNS_FSETB, UNS_FREIT): New.
* config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
* config/m32c/prologue.md (epilogue_freit): New.
(fset_b): New.
* config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
(bank_switch_p): Likewise.
(fast_interrupt_p): Likewise.
(interrupt_p): Likewise.
(m32c_conditional_register_usage): Round memregs size up.
(need_to_save): We only need to save $a0 when we use ENTER.
(interrupt_p): Check for fast_interrupt too.
(bank_switch_p): New.
(fast_interrupt_p): New.
(m32c_attribute_table): Add bank_switch and fast_interrupt.
(m32c_emit_prolog): Support bank switching and fast interrupts.
* doc/extend.texi (Function Attributes): Add bank_switch and
fast_interrupt.

From-SVN: r150862
2009-08-17 18:25:06 -04:00
Ralf Wildenhues df15255add Install gcj.pdf in $(pdfdir)/gcc alongside other manuals.
gcc/java/
	* Make-lang.in (java.install-pdf): Install gcj.pdf in
	$(pdfdir)/gcc, alongside the other manuals.

From-SVN: r150859
2009-08-17 20:22:41 +00:00
Paul Thomas 1151ccc922 re PR fortran/41062 (ICE in gfc_trans_use_stmts, at fortran/trans-decl.c:3438)
2008-08-17  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/41062
	* trans-decl.c (gfc_trans_use_stmts):  Keep going through use
	list if symbol is not use associated.

2008-08-17  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/41062
	* gfortran.dg/use_only_4.f90: New test.

From-SVN: r150858
2009-08-17 20:17:12 +00:00
Benjamin Kosnik e83fd9d7f5 typedefs.cc: New.
2009-08-17  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/30_threads/packaged_task/requirements/typedefs.cc: New.

From-SVN: r150857
2009-08-17 19:21:38 +00:00
Daniel Kraft b325faf9d9 re PR fortran/37425 (Fortran 2003: GENERIC bindings as operators)
2009-08-17  Daniel Kraft  <d@domob.eu>

	PR fortran/37425
	* resolve.c (get_checked_tb_operator_target): New routine to do checks
	on type-bound operators in common between intrinsic and user operators.
	(resolve_typebound_intrinsic_op): Call it.
	(resolve_typebound_user_op): Ditto.

2009-08-17  Daniel Kraft  <d@domob.eu>

	PR fortran/37425
	* gfortran.dg/typebound_operator_2.f03: Test for error with illegal
	NOPASS bindings as operators.

From-SVN: r150856
2009-08-17 20:55:30 +02:00
Tom Tromey 709a22df79 re PR preprocessor/41067 (Inconsistency in warnings on invalid \-escapes)
PR preprocessor/41067:
	* charset.c (convert_escape): Add missing ":" to error text.

From-SVN: r150854
2009-08-17 17:34:53 +00:00
Andrew Haley de383aecd4 Makefile.am (libgcj_bc_la_LIBADD): Delete.
2009-08-17  Andrew Haley  <aph@redhat.com>

        * Makefile.am (libgcj_bc_la_LIBADD): Delete.
        * libgcj.spec.in: (LIBGCJ_BC_SPEC): New spec.
        * configure.ac (LIBGCJ_BC_SPEC): New spec.

From-SVN: r150853
2009-08-17 17:30:10 +00:00
Uros Bizjak f32c6a2b10 * lib/target-supports.exp
(check_effective_target_vect_cmdline_needed):: Add alpha to the list
	of targets that do not need command line argument to enable SIMD.

From-SVN: r150852
2009-08-17 19:01:53 +02:00
Kaveh R. Ghazi 2679ab00c6 target-supports.exp (check_effective_target_mpc_pow): Fix typo in cache name.
* lib/target-supports.exp (check_effective_target_mpc_pow): Fix
	typo in cache name.

From-SVN: r150851
2009-08-17 16:44:00 +00:00
Douglas B Rupp dfe6ba6df9 alpha.c (vms_valid_pointer_mode): New function.
* config/alpha/alpha.c (vms_valid_pointer_mode): New function.
	* config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.

From-SVN: r150849
2009-08-17 16:22:48 +00:00
David Edelsohn be274b21f7 inclhack.def (aix_complex): Redefine _Complex_I.
* inclhack.def (aix_complex): Redefine _Complex_I.  Do not
        redefine I.
        * (aix_stdint_[12345]): New fixes.
        * fixincl.x: Regenerate.
        * tests/base/complex.h: Update check.
        * tests/base/stdint.h: Add AIX stdint.h checks.

From-SVN: r150846
2009-08-17 11:22:04 -04:00
Jerry DeLisle 2d8980b01e re PR fortran/41075 ([F2008] Implement unlimited format item)
2009-08-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/41075
	* gfortran.dg/unlimited_fmt_1.f90: New test.

From-SVN: r150845
2009-08-17 14:40:40 +00:00
Jerry DeLisle e2cec2c358 re PR fortran/41075 ([F2008] Implement unlimited format item)
2009-08-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/41075
	* io/io.h (enum format_token): Add FMT_STAR.
	* io/format.c (format_lex): Add case for FMT_STAR.
	(parse_format_list): Parse FMT_STAR and check for left paren
	after. (next_format0): Modify helper function to check for
	unimited format and return the repeated format node.  Update
	comments to clarify.

From-SVN: r150844
2009-08-17 14:27:29 +00:00
Jerry DeLisle b823d9ebdf re PR fortran/41075 ([F2008] Implement unlimited format item)
2009-08-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/41075
	* scanner.c (gfc_next_char_literal): Add comment to improve 
	readability.
	* io.c (enum format_token): Add FMT_STAR. (format_lex): Add case
	for '*'. (check_format): Check for left paren after '*'.  Change
	format checks to use %L to improve format string error locus.

From-SVN: r150843
2009-08-17 14:25:38 +00:00
Aurelien Jarno dee285096f s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
* s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
	(stack_t): New record type.
	(sigaltstack): New imported function.
	(Alternate_Stack): New imported variable.
	(Alternate_Stack_Size): New constant.

From-SVN: r150840
2009-08-17 12:08:20 +00:00
Richard Guenther 22521c89b6 decl.c (build_ptrmemfunc_type): Keep variant chain intact.
2009-08-16  Richard Guenther  <rguenther@suse.de>

	* decl.c (build_ptrmemfunc_type): Keep variant chain intact.
	Avoid useless copy.
	(finish_enum): Keep variant chain intact.
	* tree.c (cp_build_reference_type): Likewise.

From-SVN: r150839
2009-08-17 11:03:59 +00:00
Arnaud Charlet 241bea2641 [multiple changes]
2009-08-17  Vasiliy Fofanov  <fofanov@adacore.com>

	* a-calend-vms.adb: Fix typo.

2009-08-17  Tristan Gingold  <gingold@adacore.com>

	* s-taprop-posix.adb: Round up the stack size to avoid failure on
	Darwin.

2009-08-17  Gary Dismukes  <dismukes@adacore.com>

	* sem_cat.adb (Validate_Static_Object_Name): Update comment.

2009-08-17  Vincent Celier  <celier@adacore.com>

	* make.adb (Arguments_Collected): Unneeded, removed
	(Change_To_Object_Directory): Use Project directly. Add pragma Assert to
	ensure caller does not pass in No_Project.
	(Compile): Add new parameter Project. Let procedure
	Collect_Arguments_And_Compile provide the proper value.

	* switch-c.adb: Add documentation for -gnatea and -gnatez

2009-08-17  Ben Brosgol  <brosgol@adacore.com>

	* gnat_ugn.texi: Changed name of package in SAL example, to avoid
	clash with Ada 2005 reserved word (interface).

From-SVN: r150838
2009-08-17 12:33:58 +02:00
Robert Dewar 5f2d216d27 a-crbtgk.adb, [...]: Minor code reorganization (use conditional expressions)
2009-08-17  Robert Dewar  <dewar@adacore.com>

	* a-crbtgk.adb, a-crdlli.adb, a-direct.adb:
	Minor code reorganization (use conditional expressions)

From-SVN: r150837
2009-08-17 12:30:39 +02:00
Andrew Haley 1257ae4a47 Makefile.in, [...]: Regenerate.
2009-08-17  Andrew Haley  <aph@redhat.com>

	* Makefile.in,
	include/Makefile.in,
	testsuite/Makefile.in,
	gcj/Makefile.in: Regenerate.

From-SVN: r150836
2009-08-17 10:29:59 +00:00
Dodji Seketeli 4ce651ecf2 Unbreak testsuite/gcc.dg/debug/dwarf2/inline2.c
From-SVN: r150835
2009-08-17 12:18:16 +02:00
Robert Dewar 1d5a85bd83 a-caldel-vms.adb, [...]: Minor code reorganization (use conditional expressions).
2009-08-17  Robert Dewar  <dewar@adacore.com>

	* a-caldel-vms.adb, a-calend-vms.adb, a-calfor.adb, a-cdlili.adb,
	a-chahan.adb, a-cidlli.adb, a-coinve.adb, a-comlin.adb: Minor code
	reorganization (use conditional expressions).

From-SVN: r150834
2009-08-17 12:09:55 +02:00
Arnaud Charlet b01bf852a0 [multiple changes]
2009-08-17  Robert Dewar  <dewar@adacore.com>

	* tbuild.adb: Minor reformatting

2009-08-17  Thomas Quinot  <quinot@adacore.com>

	* exp_ch4.adb (Exp_Ch4.Expand_N_Slice.Make_Temporary): Rename to
	Make_Temporary_For_Slice to avoid confusion with Tbuild.Make_Temporary.
	Use Tbuild.Make_Temporary to create entity for the temporary.

From-SVN: r150832
2009-08-17 12:00:43 +02:00
Robert Dewar 06274cd584 make.adb: Add ??? comment.
2009-08-17  Robert Dewar  <dewar@adacore.com>

	* make.adb: Add ??? comment.
	Code clean up.

From-SVN: r150831
2009-08-17 11:59:04 +02:00
Arnaud Charlet 1def9494ac [multiple changes]
2009-08-17  Thomas Quinot  <quinot@adacore.com>

	* tbuild.adb: Minor reformatting

2009-08-17  Hristian Kirtchev  <kirtchev@adacore.com>

	* sysdep.c (__gnat_localtime_tzoff): Complete previous change.

From-SVN: r150830
2009-08-17 11:52:27 +02:00
Arnaud Charlet 579fab006f make.adb (Process_Multilib, [...]): Refine previous change and ignore -mieee switch to avoid spawning an extra gcc...
2009-08-17  Arnaud Charlet  <charlet@adacore.com>

	* make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change
	and ignore -mieee switch to avoid spawning an extra gcc in this case.

From-SVN: r150829
2009-08-17 11:50:19 +02:00
Arnaud Charlet 5568b57c51 [multiple changes]
2009-08-17  Ed Schonberg  <schonberg@adacore.com>

	* exp_ch3.adb (Build_Discriminant_Formals): If the discriminals already
	exist, as is the case for synchronized types, use the type of the
	discriminal in the parameter specification, to prevent a spurious
	subtype mismatch in gigi.

2009-08-17  Robert Dewar  <dewar@adacore.com>

	* prj-env.adb: Minor reformatting
	* make.adb: Minor reformatting
	Comment updates

2009-08-17  Javier Miranda  <miranda@adacore.com>

	* exp_ch7.adb (Wrap_Transient_Expression): Update comments.

From-SVN: r150828
2009-08-17 11:45:27 +02:00
Emmanuel Briot 48eff28313 2009-08-17 Emmanuel Briot <briot@adacore.com>
* prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-conf.adb
	(Processing_Flags.Require_Obj_Dirs): new field, which controls whether
	object directories must be present. In the case of gprclean at least,
	these are optional (if they do not exist there is nothing to clean)

From-SVN: r150827
2009-08-17 11:42:19 +02:00
Arnaud Charlet 88eb6e62fc [multiple changes]
2009-08-17  Robert Dewar  <dewar@adacore.com>

	* prj-env.adb: Minor reformatting
	* sem_ch3.adb: Minor reformatting

2009-08-17  Hristian Kirtchev  <kirtchev@adacore.com>

	* sysdep.c (__gnat_localtime_tzoff): VxWorks case - Flip the sign of
	the time zone since VxWorks chose positive values to represent west
	time zones and negative for east zones.

From-SVN: r150826
2009-08-17 11:35:50 +02:00
Arnaud Charlet 23532a9248 New test.
From-SVN: r150825
2009-08-17 11:30:32 +02:00