Commit Graph

68769 Commits

Author SHA1 Message Date
Keith Seitz
3332357987 JdwpPacket.java: New file.
* gnu/classpath/jdwp/transport/JdwpPacket.java: New file.
        * gnu/classpath/jdwp/transport/JdwpCommandPacket.java: New file.
        * gnu/classpath/jdwp/transport/JdwpReplyPacket.java: New file.

From-SVN: r100463
2005-06-01 20:04:05 +00:00
Tom Tromey
cd3352b625 re PR libgcj/21785 (ClassNotFound during deserialization)
PR libgcj/21785:
	* java/io/natObjectInputStream.cc (currentClassLoader): Removed.
	(currentLoader): New method.
	* java/io/ObjectInputStream.java (resolveProxyClass): Use
	currentLoader.
	(currentLoader): Now native.
	(currentClassLoader): Removed.
	* testsuite/libjava.lang/pr21785.java: New file.
	* testsuite/libjava.lang/pr21785.out: New file.

From-SVN: r100462
2005-06-01 19:58:25 +00:00
Roger Sayle
c3a29423de intrinsic.c (add_conv): No longer take a "simplify" argument as its always gfc_convert_constant...
* intrinsic.c (add_conv): No longer take a "simplify" argument as
	its always gfc_convert_constant, instead take a "standard" argument.
	(add_conversions): Change all existing calls of add_conv to pass
	GFC_STD_F77 as appropriate.  Additionally, if we're allowing GNU
	extensions support integer-logical and logical-integer conversions.
	(gfc_convert_type_warn): Warn about use the use of these conversions
	as a extension when appropriate, i.e. with -pedantic.
	* simplify.c (gfc_convert_constant): Add support for integer to
	logical and logical to integer conversions, using gfc_int2log and
	gfc_log2int.
	* arith.c (gfc_log2int, gfc_int2log): New functions.
	* arith.h (gfc_log2int, gfc_int2log): Prototype here.
	* gfortran.texi: Document this new GNU extension.

	* gfortran.dg/logint-1.f: New test case.
	* gfortran.dg/logint-2.f: Likewise.
	* gfortran.dg/logint-3.f: Likewise.

From-SVN: r100461
2005-06-01 19:17:37 +00:00
Ramana Radhakrishnan
cdeee6d280 rtl.texi: Remove references to NOTE_INSN_SETJMP.
2005-06-01  Ramana Radhakrishnan  <ramana@codito.com>

	* doc/rtl.texi: Remove references to NOTE_INSN_SETJMP.
	Add documentation for REG_SETJMP

From-SVN: r100460
2005-06-01 19:11:54 +00:00
Richard Guenther
3bedcc8967 stmt.c (expand_case): Use build_int_cst.
2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>

	* stmt.c (expand_case): Use build_int_cst.
	(node_has_low_bound): Likewise, and correct type mismatch.
	(node_has_high_bound): Likewise.
	* fold-const.c (fold_binary): Ensure we build trees
	with the correct types - undo what STRIP_NOPS possibly did.

From-SVN: r100459
2005-06-01 18:51:12 +00:00
Richard Guenther
095ecc24ec tree.h (fold_indirect_ref_1): Export from fold-const.c.
2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>

	* tree.h (fold_indirect_ref_1): Export from fold-const.c.
	* fold-const.c (fold_indirect_ref_1): No longer static.
	* tree-inline.c (copy_body_r): Use fold_indirect_ref_1 for
	folding, if possible.

From-SVN: r100458
2005-06-01 18:43:02 +00:00
Joseph Myers
82c0180d77 common.opt (fjump-tables): New.
* common.opt (fjump-tables): New.
	* doc/invoke.texi (-fno-jump-tables): Document.
	* stmt.c (expand_end_case_type): Do not emit jump tables unless
	flag_jump_tables.

From-SVN: r100457
2005-06-01 19:19:09 +01:00
Tom Tromey
68d8b93454 re PR libgcj/21753 (String.substring sharing heuristic should be improved)
PR libgcj/21753:
	* java/lang/natString.cc (substring): Changed sharing heuristic.

From-SVN: r100454
2005-06-01 15:52:45 +00:00
Richard Earnshaw
75fe7b2f40 * arm.md (bunordered, bordered, bungt, bunlt, bunge, bunle, buneq)
(bltgt, arm_buneq, arm_bltgt, sunordered, sordered, sungt, sunge)
	(sunlt, sunle): Enable patterns on VFP.

	* arm.md (attribute 'type'): Add new types - f_loads floadd, f_stores,
	f_stored, f_flag, f_cvt.
	(generic_sched): No-longer used for the arm1020e and arm1022e cores.
	Include arm1020e.md.
	* vfp.md (fmstat): New cpu unit.  Add an exclusion set between it and
	the ds and fmac pipelines.  Re-work all load and store patterns and
	all conversion patterns to use new attributes.  Adjust reservation
	descriptions accordingly.
	* arm1020e.md: New file.
	* t-arm: Add dependency.

From-SVN: r100452
2005-06-01 14:52:16 +00:00
Paul Thomas
f7f7ac5a61 Changelog: Entry for this morning's patch.
2005-06-01  Paul Thomas  <pault@gcc.gnu.org>

	* fortran/Changelog: Entry for this morning's patch.

From-SVN: r100450
2005-06-01 14:27:46 +00:00
Jan Hubicka
6617c91459 except.c (struct eh_region): Kill unused fields.
* except.c (struct eh_region): Kill unused fields.
	* basic-block.h (struct basic_block_def): Likewise.

From-SVN: r100449
2005-06-01 12:07:50 +00:00
J"orn Rennecke
5fffc382a6 re PR rtl-optimization/21767 (if-convert leaves invalid REG_EQUAL notes)
PR rtl-optimization/21767
	* rtl.h (function_invariant_p): Re-add declaration.
	* reload1.c (function_invariant_p): No longer static.
	* ifcvt.c (dead_or_predicable): Remove REG_EQUAL notes that
	might have become invalid.

From-SVN: r100448
2005-06-01 12:38:53 +01:00
Jakub Jelinek
8e0a600bdd re PR c/21536 (C99 array of variable length use causes segmentation fault)
PR c/21536
	PR c/20760
	* gimplify.c (gimplify_decl_expr): Call gimplify_type_sizes
	on variable sizes types if a decl is a pointer to a VLA.
	(gimplify_type_sizes): Handle POINTER_TYPE and REFERENCE_TYPE.
	Call gimplify_type_sizes on aggregate fields.  Prevent infinite
	recursion.

	* gcc.dg/20050527-1.c: New test.

From-SVN: r100443
2005-06-01 12:23:17 +02:00
Jakub Jelinek
dcd25113c6 * fold-const.c (fold_ternary): Optimize BIT_FIELD_REF of VECTOR_CST.
From-SVN: r100442
2005-06-01 12:13:36 +02:00
Jakub Jelinek
a00cb0b926 xmmintrin.h (_mm_setzero_ps, [...]): Add __extension__.
* config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss, _mm_set1_ps,
	_mm_set_ps, _mm_setr_ps): Add __extension__.
	* config/i386/emmintrin.h (_mm_set_sd, _mm_set1_pd, _mm_set_pd,
	_mm_setr_pd, _mm_setzero_pd, _mm_set_epi64x, _mm_set_epi64x,
	_mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128):
	Likewise.
	(_mm_clflush): Don't use return in void function.

	* gcc.dg/i386-sse-12.c: New test.

From-SVN: r100439
2005-06-01 12:07:54 +02:00
Jakub Jelinek
e2852d1f5c emmintrin.h (_mm_castpd_ps, [...]): Use __inline instead of inline.
* config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128,
	_mm_castps_pd, _mm_castps_si128, _mm_castsi128_ps, _mm_castsi128_pd):
	Use __inline instead of inline.

From-SVN: r100438
2005-06-01 12:02:31 +02:00
Jakub Jelinek
cf4d246bce re PR fortran/21729 (ICE in gfc_typenode_for_spec)
PR fortran/21729
	* resolve.c (resolve_contained_fntype): Use sym->attr.untyped
	to avoid giving error multiple times.
	(resolve_entries): Don't error about BT_UNKNOWN here.
	(resolve_unknown_f): Capitalize IMPLICIT for consistency.
	(resolve_fntype): New function.
	(gfc_resolve): Call resolve_fntype.

	* gfortran.dg/implicit_5.f90: New test.

From-SVN: r100437
2005-06-01 12:00:19 +02:00
Richard Guenther
d699d76aa7 fold-const.c (fold_binary): Fix types in strlen vs.
2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>

	* fold-const.c (fold_binary): Fix types in strlen vs.
	zero comparison folding.

From-SVN: r100436
2005-06-01 09:34:15 +00:00
Richard Henderson
d006f5eb56 configure.ac (HAVE_AS_JSRDIRECT_RELOCS): New.
* configure.ac (HAVE_AS_JSRDIRECT_RELOCS): New.
        * config.in, configure: Rebuild.
        * config/alpha/alpha.c (print_operand): Add 'j'.
        * alpha.md (divmodsi_internal_er_1): Use it.
        (divmoddi_internal_er_1): Likewise.

From-SVN: r100435
2005-06-01 01:19:44 -07:00
Paul Thomas
13a9737c19 trans-expr.c (gfc_conv_variable): Clean up bracketting.
2005-06-01  Paul Thomas  <pault@gcc.gnu.org>

	* fortran/trans-expr.c (gfc_conv_variable): Clean up bracketting.
	* fortran/trans-expr.c (gfc_conv_function_call): Insert spaces.
	Correct comments and replace convert of integer_one_node with
	build_int_cst.

From-SVN: r100433
2005-06-01 07:18:20 +00:00
Richard Sandiford
bacf5b96ed system.h (TARGET_OPTIONS, [...]): Poison.
* system.h (TARGET_OPTIONS, TARGET_SWITCHES): Poison.
	* opts.h (print_filtered_help): Delete.
	* opts.c (handle_option, decode_options): Remove calls to
	set_target_switch.
	(print_target_help): New function.
	(common_option, print_help): Call print_target_help instead of
	display_target_options.
	(print_filtered_help): Make static.
	* toplev.h (display_target_options, set_target_switch): Delete.
	* toplev.c (target_switches, target_options, display_target_options)
	(set_target_switch): Delete.
	(print_switch_values): Remove handling of TARGET_SWITCHES and
	TARGET_OPTIONS.
	(default_get_pch_validity): Likewise.  Only treat target_flags
	specially if targetm.check_pch_target_flags is nonnull.
	(pch_option_mismatch): New function.
	(default_pch_valid_p): Use it.  Remove handling of TARGET_SWITCHES
	and TARGET_OPTIONS.  Only treat target_flags specially if
	targetm.check_pch_target_flags is nonnull.
	* config/ia64/ia64.c (ia64_override_options): Don't mention
	TARGET_OPTIONS in comment.
	* config/m68k/m68k-none.h (CC1_SPEC): Likewise.
	* doc/invoke.texi: Remove a reference to TARGET_SWITCHES.
	* doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS): Don't mention the
	interaction with TARGET_SWITCHES.
	(TARGET_@var{featurename}, TARGET_SWITCHES, TARGET_OPTIONS): Delete.

From-SVN: r100432
2005-06-01 07:02:36 +00:00
Richard Sandiford
7dd2f19b2f sh.c (multcosts): Check sh_multcost rather than sh_multcost_str.
* config/sh/sh.c (multcosts): Check sh_multcost rather than
	sh_multcost_str.
	(sh_register_move_cost): Likewise sh_gettrcost and sh_gettrcost_str.
	(sh_multcost_str, sh_gettrcost_str, sh_div_str, sh_divsi3_libfunc)
	(cut2_workaround_str): Delete.
	* config/sh/sh.h (SUBTARGET_OPTIONS, TARGET_OPTIONS)
	(TARGET_SH5_CUT2_WORKAROUND, sh_multcost_str, sh_gettrcost_str)
	(sh_div_str, sh_divsi3_libfunc, cut2_workaround_str): Delete.
	* config/sh/sh.opt (mcut2-workaround, mdiv=, mdivsi3_libfunc=)
	(mgettrcost=, multcost=): New options.

From-SVN: r100431
2005-06-01 06:58:41 +00:00
Richard Sandiford
5c60a0172d opts.h (cl_option_state): New structure.
* opts.h (cl_option_state): New structure.
	(get_option_state): Declare.
	* opts.c (get_option_state): New function.
	* toplev.c (option_affects_pch_p): New function.
	(default_get_pch_validity): Store the state of all options for which
	option_affects_pch_p returns true.
	(default_pch_valid_p): Check the state of those options here.
	Only check target_flags separately if targetm.check_pch_target_Flags
	is nonnull or if TARGET_SWITCHES is defined.

From-SVN: r100430
2005-06-01 06:55:47 +00:00
Richard Sandiford
b76f4c1c79 sh-protos.h (sh_pch_valid_p): Delete.
* config/sh/sh-protos.h (sh_pch_valid_p): Delete.
(missing from yesterday's checkin)

From-SVN: r100429
2005-06-01 06:52:51 +00:00
Richard Sandiford
05adfd8238 mips-protos.h (mips_use_ins_ext_p): Remove parameter names.
* config/mips/mips-protos.h (mips_use_ins_ext_p): Remove parameter
	names.

From-SVN: r100428
2005-06-01 06:04:22 +00:00
Mostafa Hagog
55573a3ee5 re PR rtl-optimization/21138 (wrong code in sixtrack for -fmodulo-sched)
2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>

	* modulo-sched.c (undo_generate_reg_moves ): Fix PR 21138.

From-SVN: r100426
2005-06-01 05:26:41 +00:00
Mostafa Hagog
16c5b95d41 gcse.c (compute_transp, [...]): Use MEM_READONLY_P.
2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>

      * gcse.c (compute_transp, load_killed_in_block): Use MEM_READONLY_P.

From-SVN: r100425
2005-06-01 05:17:59 +00:00
Feng Wang
bf3ddf8a1f re PR fortran/20883 (unassigned integer used as format)
2005-06-01  Feng Wang  <fengwang@nudt.edu.cn>

        PR fortran/20883
        * fortran/io.c (resolve_tag): Fix error message.

2005-06-01  Feng Wang  <fengwang@nudt.edu.cn>

        PR fortran/20883
        * gfortran/assign_4.f90: New test.
        * gfortran/assign_2.f90: Change compile to run.

From-SVN: r100424
2005-06-01 03:44:43 +00:00
David Billinghurst
5d1dcb0e09 re PR target/21854 (irix6.5 bootstrap fails due to warning in mips.c)
2005-06-01  David.Billinghurst  <David.Billinghurst@riotinto.com>

	PR target/21854
	* config/mips/mips-protos.h: Declare mips_use_ins_ext_p

From-SVN: r100422
2005-06-01 03:04:34 +00:00
Kaveh R. Ghazi
474b650ec3 errors.h (warning, [...]): Add printf attribute.
* errors.h (warning, error, fatal, internal_error): Add printf
	attribute.
	* genmodes.c (make_vector_mode): Fix format arguments.

From-SVN: r100421
2005-06-01 02:55:50 +00:00
Kaveh R. Ghazi
4c714dd4a6 basic-block.h, [...]: Don't include errors.h and include toplev.h if necessary.
* basic-block.h, bb-reorder.c, c-gimplify.c, config/darwin.c,
	config/rs6000/rs6000-c.c, dominance.c, gimple-low.c, gimplify.c,
	lambda-code.c, lambda-trans.c, tree-browser.c, tree-cfg.c,
	tree-chrec.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
	tree-if-conv.c, tree-into-ssa.c, tree-loop-linear.c,
	tree-mudflap.c, tree-nomudflap.c, tree-outof-ssa.c,
	tree-pretty-print.c, tree-scalar-evolution.c, tree-sra.c,
	tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
	tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-live.c,
	tree-ssa-operands.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
	tree-ssa-propagate.c, tree-ssa-sink.c, tree-ssa-threadupdate.c,
	tree-ssa-uncprop.c, tree-ssa.c, tree-vect-analyze.c,
	tree-vect-transform.c, tree-vectorizer.c, vec.c: Don't include
	errors.h and include toplev.h if necessary.

	* rtl.c, varray.c: If we're compiling as a GENERATOR_FILE, include
	errors.h otherwise include toplev.h.

	* Makefile.in: Update dependencies.

ada:
	* misc.c: Don't include errors.h.

fortran:
	* fortran/trans-decl.c: Don't include errors.h.
	* fortran/Make-lang.in: Updates dependencies.

java:
	* java/verify-glue.c: Don't include errors.h and include toplev.h.
	* java/Make-lang.in: Updates dependencies.

treelang:
	* treelang/lex.l, treelang/parse.y: Don't include errors.h and
	include toplev.h.
	* treelang/Make-lang.in: Updates dependencies.

From-SVN: r100420
2005-06-01 02:51:18 +00:00
Danny Smith
d68c2f42dc * config/i386/cygming.h (NO_PROFILE_COUNTERS): Define.
From-SVN: r100419
2005-06-01 00:50:21 +00:00
Geoffrey Keating
a9c9d3fa23 Index: ChangeLog
2005-05-31  Geoffrey Keating  <geoffk@geoffk.org>

	* config/rs6000/rs6000.md (sync_boolcshort_internal): New.
	* config/rs6000/rs6000.c (rs6000_emit_sync): Shift count must
	be complemented for big-endian.  Mask for AND must be rotated,
	not shifted.  Handle short operands with NOT on the memory
	operation.

Index: testsuite/ChangeLog
2005-05-31  Geoffrey Keating  <geoffk@geoffk.org>

	* lib/target-supports.exp
	(check_effective_target_sync_char_short): New.
	* gcc.dg/sync-2.c: New.

From-SVN: r100418
2005-06-01 00:45:24 +00:00
Daniel Berlin
f991abd12d c-objc-common.c (c_tree_printer): Check flag before hashtable.
2005-05-30  Daniel Berlin  <dberlin@dberlin.org>

	* c-objc-common.c (c_tree_printer): Check flag before hashtable.
	Use DECL_DEBUG_EXPR and SET_DECL_DEBUG_EXPR.
	* dwarf2out.c (dwarf2out_var_location): Ditto.
	* toplev.c (default_tree_printer): Ditto.
	* tree-outof-ssa.c (create_temp): Ditto.
	* tree-sra.c (instantiate_element): Ditto.
	* var-tracking.c (track_expr_p): Ditto.
	* tree.c (struct tree_map): New structure.
	(debug_expr_for_decl): New.
	(tree_map_eq): New function.
	(tree_map_hash): Ditto.
	(tree_map_marked_p): Ditto.
	(print_debug_expr_statistics): Ditto.
	(decl_debug_expr_lookup): Ditto.
	(decl_debug_expr_insert): Ditto.
	(dump_tree_statistics): Dump debug_expr hashtable stats.
	* tree.h (DECL_DEBUG_EXPR): Change
	(SET_DECL_DEBUG_EXPR): Add.

From-SVN: r100417
2005-06-01 00:39:49 +00:00
Alan Modra
6d0d376c8f ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET to call ffi_closure_helper_SYSV.
* src/powerpc/ppc_closure.S (ffi_closure_SYSV): Don't use JUMPTARGET
	to call ffi_closure_helper_SYSV.  Append @local instead.
	* src/powerpc/sysv.S (ffi_call_SYSV): Likewise for ffi_prep_args_SYSV.

From-SVN: r100416
2005-06-01 10:03:09 +09:30
Alan Modra
7f970b7092 configure.ac: Add --enable-secureplt.
* configure.ac: Add --enable-secureplt.
	(HAVE_AS_REL16): Test for R_PPC_REL16 relocs.
	* config.in: Regenerate.
	* configure: Regenerate.
	* config.gcc (powerpc64-*-linux*, powerpc-*-linux*): Add
	rs6000/secureplt.h to tm_file when enable_secureplt.
	* doc/invoke.texi (msecure-plt, mbss-plt): Document.
	* doc/install.texi: Document --enable-targets and --enable-secureplt.
	Correct xrefs to "Using the GNU Compiler Collection (GCC)".
	* config/rs6000/secureplt.h: New file.
	* config/rs6000/sysv4.h (TARGET_SECURE_PLT): Define.
	(SUBTARGET_OVERRIDE_OPTIONS): Error if -msecure-plt given without
	assembler support.
	(CC1_SECURE_PLT_DEFAULT_SPEC): Define.
	(CC1_SPEC): Delete duplicate mno-sdata.  Invoke cc1_secure_plt_default.
	(SUBTARGET_EXTRA_SPECS): Add cc1_secure_plt_default.
	* config/rs6000/sysv4.opt (msecure-plt, bss-plt): Add options.
	* config/rs6000/rs6000.h (TARGET_SECURE_PLT): Define.
	* config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Handle
	TARGET_SECURE_PLT got register load sequence.
	(rs6000_emit_prologue): Call rs6000_emit_load_toc_table when
	TARGET_SECURE_PLT.
	(rs6000_elf_declare_function_name): Don't emit toc address offset
	word when TARGET_SECURE_PLT.
	* config/rs6000/rs6000.md (elf_high, elf_low): Move past load_toc_*.
	(load_toc_v4_PIC_1) Enable for TARGET_SECURE_PLT.
	(load_toc_v4_PIC_3b, load_toc_v4_PIC_3c): New insns.
	(call, call_value): Mark pic_offset_table_rtx used for sysv pic and
	TARGET_SECURE_PLT.
	(call_nonlocal_sysv, call_value_nonlocal_sysv, sibcall_nonlocal_sysv,
	sibcall_value_nonlocal_sysv): Add 32768 offset when TARGET_SECURE_PLT
	and -fPIC.
	* config/rs6000/tramp.asm (trampoline_initial): Use "bcl 20,31".
	(__trampoline_setup): Likewise.  Init r30 before plt call.

From-SVN: r100415
2005-06-01 10:00:26 +09:30
DJ Delorie
d2348bd591 expr.c (convert_move): When a partial_int requires multiple conversion steps...
* expr.c (convert_move): When a partial_int requires multiple
conversion steps, make sure successive steps convert the
intermediate value, not the original value.

* expmed.c (expand_mult): Convert partial_int multiplies to
shift/add combinations too.

* genmodes.c (mode_data): Add wider_2x.
(calc_wider_mode): Calculate twice-wider mode too.
(emit_mode_wider): Emit twice-wider mode too.
* machmode.h (mode_2xwider, GET_MODE_2XWIDER_MODE): New.
* expr.c (expand_expr_real_1): Use it for expanding
multiplies.

From-SVN: r100414
2005-05-31 20:20:13 -04:00
GCC Administrator
cc2f3fa620 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r100412.2
2005-06-01 00:16:31 +00:00
Zdenek Dvorak
60407f7a65 re PR tree-optimization/21817 (ICE in for_each_index, at tree-ssa-loop-im.c:200)
PR tree-optimization/21817
	* tree-ssa-loop-im.c (for_each_index): Handle VECTOR_CST.

From-SVN: r100410
2005-05-31 23:07:25 +00:00
Pat Haugen
ec22e73ba8 loop.c (loop_invariant_p, [...]): Revert last change.
2005-05-31  Pat Haugen  <pthaugen@us.ibm.com>

        * loop.c (loop_invariant_p, valid_initial_value_p): Revert last
        change.

From-SVN: r100408
2005-05-31 17:29:05 -04:00
Paolo Carlini
87d33b419b PR libstdc++/20534 (contd)
2005-05-31  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/20534 (contd)
	* include/debug/macros.h: Add _GLIBCXX_DEBUG_ABORT, using
	__gnu_debug::__fancy_abort.
	* src/debug.cc: Define the latter.
	* include/debug/debug.h: Use _GLIBCXX_DEBUG_ABORT instead of
	assert.
	* config/linker-map.gnu (__gnu_debug::__fancy_abort): Add.

From-SVN: r100405
2005-05-31 18:31:55 +00:00
Nathan Sidwell
8bd46447b3 re PR c++/21165 (bogus error on a user-defined conversion in a template)
cp:
PR c++/21165
	* init.c (integral_constant_value): Check the type of the
	initializer, not the decl.
testsuite:
	PR c++/21165
	* g++.dg/template/init5.C: New.

From-SVN: r100402
2005-05-31 17:43:26 +00:00
Paul Thomas
fba53b18ab char_initialiser_actual.f90: Test character initialisers as actual arguments.
2005-05-30  Paul Thomas  <pault@gcc.gnu.org>

	* gfortran.dg/char_initialiser_actual.f90:
	Test character initialisers as actual arguments.
	* gfortran.dg/char_pointer_comp_assign.f90:
	Test character pointer structure component assignments.
	* gfortran.dg/char_array_structure_constructor.f90:
	Test character components in structure constructors.

From-SVN: r100401
2005-05-31 17:39:03 +00:00
Paul Thomas
2b052ce2f5 re PR fortran/18109 (ICE with explicit array of strings)
2005-05-30  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/18109
	PR fortran/18283
	PR fortran/19107
	* fortran/trans-array.c (gfc_conv_expr_descriptor): Obtain the
	string length from the expression typespec character length value
	and set temp_ss->stringlength and backend_decl. Obtain the
	tree expression from gfc_conv_expr rather than gfc_conv_expr_val.
	Dereference the expression to obtain the character.
	* fortran/trans-expr.c (gfc_conv_component_ref): Remove the
	dereference of scalar character pointer structure components.
	* fortran/trans-expr.c (gfc_trans_subarray_assign): Obtain the
	string length for the structure component from the component
	expression.

From-SVN: r100400
2005-05-31 17:19:11 +00:00
Andrew Pinski
d763bb1005 [multiple changes]
2005-05-31  Andrew pinski  <pinskia@physics.uc.edu>

        PR middle-end/20931
        * g++.dg/opt/pr20931.C: New test.

2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/20931
        PR middle-end/20946
        * fold-const.c (fold_checksum_tree): Copy types also if
        TYPE_CONTAINS_PLACEHOLDER_INTERNAL is set.
        Don't call fold_checksum_tree for TREE_LIST's TREE_CHAIN
        first.
        Tail recurse TREE_LIST's TREE_CHAIN.

From-SVN: r100397
2005-05-31 09:40:09 -07:00
Andrew Pinski
fb03baf210 re PR tree-optimization/21732 (-ftree-dump-all-details hangs during *.c.t24.copyprop or *.c.t38.copyprop2)
2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/21732
        * tree-ssa-copy.c (dump_copy_of): Create a bitmap and don't visit a
        SSA_NAME twice and cause the loop to become finite.  Remove the test
        for val.

From-SVN: r100396
2005-05-31 09:29:16 -07:00
Andreas Jaeger
8c7a0ea6ed re PR testsuite/20772 (x86 tests should run on both i?86 and x86_64)
PR testsuite/20772
	* g++.dg/abi/dtor1.C, g++.dg/abi/empty10.C, g++.dg/abi/layout3.C,
	g++.dg/eh/simd-2.C, g++.dg/opt/cse2.C,
	g++.old-deja/g++.ext/asmspec1.C,
	g++.old-deja/g++.other/regstack.C,
	gcc.dg/20000614-1.c, gcc.dg/20000807-1.c, gcc.dg/20000904-1.c,
	gcc.dg/20001127-1.c, gcc.dg/20010202-1.c, gcc.dg/20010520-1.c,
	gcc.dg/20011009-1.c, gcc.dg/20011029-2.c, gcc.dg/20020224-1.c,
	gcc.dg/20020531-1.c, gcc.dg/20020616-1.c, gcc.dg/980226-1.c,
	gcc.dg/980414-1.c, gcc.dg/980520-1.c, gcc.dg/980709-1.c,
	gcc.dg/990117-1.c, gcc.dg/990130-1.c, gcc.dg/990213-2.c,
	gcc.dg/990214-1.c, gcc.dg/991129-1.c, gcc.dg/991209-1.c,
	gcc.dg/991214-1.c, gcc.dg/asm-1.c, gcc.dg/attr-returns_twice-1.c,
	gcc.dg/clobbers.c, gcc.dg/i386-387-7.c, gcc.dg/i386-387-8.c,
	gcc.dg/i386-3dnowA-1.c, gcc.dg/i386-3dnowA-2.c, gcc.dg/i386-asm-1.c
	gcc.dg/i386-asm-2.c, gcc.dg/i386-asm-3.c, gcc.dg/i386-bitfield3.c
	gcc.dg/i386-call-1.c, gcc.dg/i386-memset-1.c,
	gcc.dg/i386-signbit-3.c, gcc.dg/i386-ssefn-1.c,
	gcc.dg/i386-ssefn-2.c, gcc.dg/i386-ssefn-3.c, gcc.dg/i386-ssefn-4.c
	gcc.dg/i386-volatile-1.c, gcc.dg/i386-xorps.c, gcc.dg/pr12092-1.c
	gcc.dg/pr14289-1.c, gcc.dg/pr19236-1.c, gcc.dg/pr20204.c,
	gcc.dg/pr9771-1.c, gcc.dg/register-var-1.c,
	gcc.dg/sibcall-5.c, gcc.dg/charset/asm3.c,
	gcc.dg/cpp/trad/num-sign.c: Run tests also on x86_64.

From-SVN: r100394
2005-05-31 18:28:30 +02:00
Andrew Pinski
9c69196161 tree-cfg.c (verify_expr): Add checking for COND_EXPR's conditional expression.
2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>

        * tree-cfg.c (verify_expr): Add checking for COND_EXPR's conditional
        expression.

From-SVN: r100393
2005-05-31 09:21:08 -07:00
Richard Sandiford
8d932be3e1 tm.texi (TARGET_GET_PCH_VALIDITY, [...]): Tweak the documentation to make it more future-proof.
* doc/tm.texi (TARGET_GET_PCH_VALIDITY, TARGET_PCH_VALID_P): Tweak
	the documentation to make it more future-proof.
	(TARGET_CHECK_PCH_TARGET_FLAGS): Document this new hook.
	* target.h (gcc_target): Add check_pch_target_flags.
	* target-def.h (TARGET_CHECK_PCH_TARGET_FLAGS): New macro.
	(TARGET_INITIALIZER): Include it.
	* toplev.c (default_pch_valid_p): Use targetm.check_pch_target_flags.
	* config/sh/sh.h (sh_pch_valid_p): Delete.
	* config/sh/sh.c (TARGET_PCH_VALID_P, sh_pch_valid_p): Delete.
	(sh_check_pch_target_flags): New function.
	(TARGET_CHECK_PCH_TARGET_FLAGS): Override default.

From-SVN: r100392
2005-05-31 15:51:42 +00:00
Jeff Law
4ea73bfac3 fold-const.c (extract_array_ref): Handle more cases, do some useful canonicalization of the base.
* fold-const.c (extract_array_ref): Handle more cases,
        do some useful canonicalization of the base.
        (fold_binary): Explicitly deal with arrays of zero-sized
        structures during folding of &a[i] == &a[j].

        * gcc.dg/tree-ssa/foldaddr-1.c: New test.

From-SVN: r100391
2005-05-31 08:33:29 -06:00