Commit Graph

95537 Commits

Author SHA1 Message Date
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
Arnaud Charlet 89c273b457 [multiple changes]
2009-08-17  Ed Schonberg  <schonberg@adacore.com>

	* sem_ch3.adb (Access_Definition): Do not create an Itype reference for
	an anonymous access type whose designated type is generic.

2009-08-17  Arnaud Charlet  <charlet@adacore.com>

	* comperr.adb (Compiler_Abort): Do not generate a bug box when in
	codepeer mode, friendlier.

From-SVN: r150824
2009-08-17 11:28:48 +02:00
Janus Weil b76e28c64d re PR fortran/40877 (memory leaks with gfc_charlen?)
2009-08-17  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/40877
	* array.c (gfc_resolve_character_array_constructor): Add NULL argument
	to gfc_new_charlen.
	* decl.c (add_init_expr_to_sym,variable_decl,match_char_spec,
	gfc_match_implicit): Ditto.
	* expr.c (simplify_const_ref): Fix memory leak.
	(gfc_simplify_expr): Add NULL argument to gfc_new_charlen.
	* gfortran.h (gfc_new_charlen): Modified prototype.
	* iresolve.c (check_charlen_present,gfc_resolve_char_achar): Add NULL
	argument to gfc_new_charlen.
	* module.c (mio_charlen): Ditto.
	* resolve.c (gfc_resolve_substring_charlen,
	gfc_resolve_character_operator,fixup_charlen): Ditto.
	(resolve_fl_derived,resolve_symbol): Add argument to gfc_charlen.
	* symbol.c (gfc_new_charlen): Add argument 'old_cl' (to make a copy of
	an existing charlen).
	(gfc_set_default_type,generate_isocbinding_symbol): Fix memory leak.
	(gfc_copy_formal_args_intr): Add NULL argument to gfc_new_charlen.
	* trans-decl.c (create_function_arglist): Fix memory leak.

From-SVN: r150823
2009-08-17 11:11:00 +02:00
Ben Elliston e9d9afef6f * config.sub, config.guess: Update from upstream sources.
From-SVN: r150822
2009-08-17 14:09:01 +10:00
Adam Nemet 4e9eeaad22 mips.exp: Add terminology section to comment at the top of the file.
* gcc.target/mips/mips.exp: Add terminology section to comment
	at the top of the file.  Fix typos.

From-SVN: r150821
2009-08-17 01:34:14 +00:00
GCC Administrator cd0d2becc6 Daily bump.
From-SVN: r150820
2009-08-17 00:16:39 +00:00
Richard Guenther fbe7af45be trans-expr.c (gfc_trans_scalar_assign): Replace hack with more proper hack.
2009-08-17  Richard Guenther  <rguenther@suse.de>

	* trans-expr.c (gfc_trans_scalar_assign): Replace hack with
	more proper hack.

From-SVN: r150817
2009-08-16 22:36:13 +00:00
H.J. Lu a6494e5388 Adding the missing ".c".
From-SVN: r150811
2009-08-16 13:07:14 -07:00
Douglas B Rupp dcad28fd05 Identical options to Alpha/VMS. Committed as obvious.
* doc/invoke.texi (Target options):
	Add new option list for IA-64/VMS.
	(menu): Add IA-64/VMS Options.
	(IA-64/VMS Options): Likewise.

From-SVN: r150808
2009-08-16 19:23:44 +00:00
Jason Merrill 15305a736f Make TREE_USED match the [basic.def.odr] concept for FUNCTION_DECL and VAR_DECL...
Make TREE_USED match the [basic.def.odr] concept for FUNCTION_DECL
	and VAR_DECL, so mark_used only has effect the first time.
	* decl2.c (mark_used): Just return if TREE_USED is already set.
	Don't set TREE_USED if cp_unevaluated_operand is set.
	(tree_used_ok): New fn.
	* init.c (build_offset_ref): Check it instead of TREE_USED.
	* call.c (build_call_a): Likewise.
	* cp-tree.h: Declare it.
	(DECL_NO_LINKAGE_CHECKED): No longer needed.
	(struct lang_decl_base): Remove no_linkage_checked bitfield.

From-SVN: r150807
2009-08-16 13:42:56 -04:00
Jason Merrill d3ece023f3 * decl2.c (finish_static_data_member_decl): Don't set TREE_USED.
From-SVN: r150806
2009-08-16 13:42:48 -04:00
Jason Merrill b49bd3798d * decl2.c (mark_used): It's ok to synthesize for default args now.
From-SVN: r150805
2009-08-16 13:42:41 -04:00
Richard Sandiford 30fff3d8cb re PR target/38599 (There should be a Pmode == DImode version of the MIPS lwxs pattern)
gcc/
	PR target/38599
	* config/mips/mips.md (*lwxs): Use :P for pointer values.

gcc/testsuite/
	PR target/38599
	* gcc.target/mips/smartmips-lwxs.c: Remove -mlong32.

From-SVN: r150804
2009-08-16 17:30:45 +00:00
Richard Sandiford cf5fb4b0d5 mips-protos.h (mips_push_asm_switch): New function.
gcc/
	* config/mips/mips-protos.h (mips_push_asm_switch): New function.
	(mips_pop_asm_switch): Likewise.
	* config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
	with...
	(mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
	(mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
	(mips_push_asm_switch, mips_pop_asm_switch): Likewise.
	(mips_print_operand_punctuation): Use them.  Check mips_noreorder
	instead of set_noreorder.
	(mips_output_function_prologue): Use the new functions.
	(mips_output_function_epilogue): Likewise.
	(mips_need_noat_wrapper_p): New function, split out from...
	(mips_final_prescan_insn, mips_final_postscan_insn): ...here.
	Use mips_push_asm_switch and mips_pop_asm_switch.
	* config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
	and mips_pop_asm_switch.
	(ASM_OUTPUT_REG_POP): Likewise.
	(DBR_OUTPUT_SEQEND): Remove boilerplate comment.
	Use mips_pop_asm_switch.
	(mips_asm_switch): New structure.
	(set_noreorder, set_nomacro): Replace with...
	(mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
	* config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
	instead of set_nomacro.
	(fix_truncsfsi2_macro): Likewise.
	(cprestore): Likewise.
	(hazard): Use mips_noreorder instead of set_noreorder.
	* config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.

From-SVN: r150803
2009-08-16 17:25:23 +00:00
Uros Bizjak 3eb96d01d4 alpha.c (alpha_and_function): Handle NULL_RTX returned from prev_active_insn.
* config/alpha/alpha.c (alpha_and_function): Handle NULL_RTX returned
	from prev_active_insn.

From-SVN: r150802
2009-08-16 19:00:30 +02:00
Anatoly Sokolov 164709cfe6 avr.h (AVR_HAVE_8BIT_SP): New macros.
* config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
	* config/avr/avr.c (avr_override_options): Initialize
	avr_current_arch variable.
	(avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
	__AVR_HAVE_16BIT_SP__ according to the device type.
	(expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
	TARGET_TINY_STACK.
	(expand_epilogue): Use correct QI mode frame pointer for tiny stack.
	Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.

From-SVN: r150801
2009-08-16 20:22:59 +04:00
Ralf Wildenhues 354ebf88ee Sync toplevel from src and merge.
/:
	Sync from src, merge:

	2009-07-02  Tristan Gingold  <gingold@adacore.com>

	* configure.ac: Do not exclude gas for i386-*-darwin.
	Add a case for x86_64-*-darwin.
	* configure: Regenerate.

From-SVN: r150800
2009-08-16 15:09:13 +00:00