Commit Graph

61295 Commits

Author SHA1 Message Date
GCC Administrator
a6615c08bf Daily bump.
From-SVN: r86948
2004-09-02 00:16:12 +00:00
Fariborz Jahanian
5ec214fc75 Fix size of generic vectors with -maltivec.
OKed by Geoff Keating.

From-SVN: r86941
2004-09-02 00:01:37 +00:00
Tobias Schlüter
c3d0559da5 re PR fortran/15327 (ICE when using MERGE on strings)
fortran/
PR fortran/15327
* trans-intrinsic.c (gfc_conv_intrinsic_merge): Do the right thing for
strings.

testsuite/
PR fortran/15327
* gfortran.dg/merge_char_1.f90: New test.

From-SVN: r86940
2004-09-02 01:29:46 +02:00
Wu Yongwei
40219f9650 gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long', not Windows 'DWORD'.
* gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
	not Windows 'DWORD'.
	(__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
	(__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
	(__gthr_win32_recursive_mutex_init_function): Add prototype for
	__GTHREAD_HIDE_WIN32API case..
	(__gthr_win32_recursive_mutex_lock): Likewise.
	(__gthr_win32_recursive_mutex_trylock): Likewise.
	(__gthr_win32_recursive_mutex_unlock): Likewise.
	(__gthread_recursive_mutex_init_function); Add definition for
	__GTHREAD_HIDE_WIN32API case.
	(__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
	* config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
	call to InterlockedDecrement.

Co-Authored-By: Danny Smith <dannysmith@users.sourceforge.net>

From-SVN: r86939
2004-09-01 23:18:54 +00:00
Richard Kenner
ba2e294dfb tree-tailcall.c (find_tail_calls): Also fail is statement has volatile operands.
* tree-tailcall.c (find_tail_calls): Also fail is statement has
	volatile operands.

From-SVN: r86938
2004-09-01 19:07:52 -04:00
Richard Henderson
73022c2a43 Update TREE_NO_WARNING docs.
From-SVN: r86937
2004-09-01 15:24:27 -07:00
Benjamin Kosnik
8bfd0a46ea re PR libstdc++/16614 (Excessive resource usage in __mt_alloc)
2004-09-01  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/16614
	* include/ext/mt_allocator.h (__mt_base): Not type dependent,
	split into..
	(__pool): New, specialize.
	(__common_pool): New, static bits here.
	(__per_type_pool): New, and here.
	(__mt_alloc_base): New.
	(__mt_alloc): Add template parameter, inherit from it.
	* src/allocator.cc: Split this...
	* src/allocator-inst.cc: And this...
	* src/pool_allocator.cc: ...into this.
	* src/mt_allocator.cc: ... and this. Add definitions for
	__mt_base.
	* src/Makefile.am (sources): Split allocator.cc to
	pool_allocator.cc and mt_allocator.cc.
	* src/Makefile.in: Regenerate.
	* config/linker-map.gnu: Add symbols.
	* docs/html/ext/mt_allocator.html: Document new design.
	* testsuite/ext/mt_allocator/tune-1.cc: New.
	* testsuite/ext/mt_allocator/tune-2.cc: New.
	* testsuite/ext/mt_allocator/tune-3.cc: New.
	* testsuite/ext/mt_allocator/tune-4.cc: New.

	* testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
	* testsuite/ext/allocators.cc: Use check_new, split into...
	* testsuite/ext/mt_allocator/check_new.cc: this.
	* testsuite/ext/pool_allocator/check_new.cc: this.
	* testsuite/ext/malloc_allocator/check_new.cc: this.
	* testsuite/ext/debug_allocator/check_new.cc: this.
	* testsuite/ext/mt_allocator/instantiate.cc: this.
	* testsuite/ext/pool_allocator/instantiate.cc: this.
	* testsuite/ext/malloc_allocator/instantiate.cc: this.
	* testsuite/ext/debug_allocator/instantiate.cc: this.

From-SVN: r86936
2004-09-01 22:17:00 +00:00
Richard Kenner
0705d60230 * tree-ssa.c (propagate_into_addr): Properly test for LHR.
From-SVN: r86934
2004-09-01 18:06:20 -04:00
Richard Kenner
78ad8fbec4 c-tree.texi: Document new operands for ARRAY_REF and COMPONENT_REF.
* doc/c-tree.texi: Document new operands for ARRAY_REF and
	COMPONENT_REF.

From-SVN: r86932
2004-09-01 17:22:24 -04:00
Tobias Schlüter
0e6928d853 re PR fortran/16400 (Invalid usage of assumed-size arrays is not rejected)
fortran/
PR fortran/16400
PR fortran/16404
(port from g95)
* resolve.c (resolve_transfer): New function.
(resolve_code): Call resolve_transfer in case of EXEC_TRANSFER.

testsuite/
PR fortran/16404
* gfortran.dg/der_io_1.f90: XFAIL illegal testcase.

From-SVN: r86931
2004-09-01 23:07:39 +02:00
Zdenek Dvorak
6d9901e75f Makefile.in (rtl-profile.o, [...]): Add GCC_H dependency.
* Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
	* common.opt (fspeculative-prefetching): New.
	* flags.h (flag_speculative_prefetching_set): Declare.
	* gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
	values.
	* opts.c (flag_sepculative_prefetching_set): New variable.
	(common_handle_option): Handle -fspeculative-prefetching.
	* passes.c (rest_of_compilation): Ditto.
	* profile.c (instrument_values, compute_value_histograms, branch_prob):
	Use vectors instead of arrays.
	* toplev.c (process_options): Handle -fspeculative-prefetching.
	* rtl-profile.c: Include ggc.h.
	(rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
	rtl_gen_one_value_profiler_no_edge_manipulation,
	rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
	argument changed.
	* tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
	tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
	argument changed.
	* value-prof.c: Include ggc.h.
	(NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
	macros.
	(insn_prefetch_values_to_profile, find_mem_reference_1,
	find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
	speculative_prefetching_transform): New.
	(value_profile_transformations): Call speculative_prefetching_transform.
	(insn_values_to_profile): Call insn_prefetch_values_to_profile.
	(insn_divmod_values_to_profile, rtl_find_values_to_profile,
	tree_find_values_to_profile, find_values to profile): Use vectors
	instead of arrays.
	(free_profiled_values): Removed.
	* value-prof.h (struct histogram_value): Renamed to
	struct histogram_value_t.
	(histogram_value, histogram_values): New types.
	(find_values_to_profile): Declaration changed.
	(free_profiled_values): Removed.
	(struct profile_hooks): Type of argument of the hooks changed to
	histogram_value.
	* doc/invoke.texi (-fspeculative-prefetching): Document.

From-SVN: r86930
2004-09-01 20:58:55 +00:00
Zdenek Dvorak
d7fe118321 re PR rtl-optimization/16408 (internal compiler error: in delete_insn, at cfgrtl.c:146)
PR rtl-optimization/16408
	* gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.

From-SVN: r86928
2004-09-01 20:28:39 +00:00
Richard Kenner
57b38f517c re PR c/15224 (Attribute mode causes ICE when applied to enums)
PR c/15224
	* gcc.c-torture/compile/20040901-1.c: New test, from PR.

From-SVN: r86927
2004-09-01 16:14:32 -04:00
Richard Kenner
ec8465a533 re PR c/15224 (Attribute mode causes ICE when applied to enums)
PR c/15224
	* c-common.c (handle_mode_attribute): Handle ENUMERAL_TYPE.
	* c-decl.c (finish_enum): Check for user-specified precision too small.

From-SVN: r86926
2004-09-01 16:09:16 -04:00
Richard Henderson
938e234bf9 ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
* config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
        (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.

From-SVN: r86922
2004-09-01 12:41:40 -07:00
Jakub Jelinek
d0879c9868 * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
From-SVN: r86921
2004-09-01 21:17:50 +02:00
Eric Botcazou
130abd1728 mk-sik-inc.sh: Use a temporary string instead of 'echo -n'.
* mk-sik-inc.sh: Use a temporary string instead of 'echo -n'.
	* mk-srk-inc.sh: Likewise.

From-SVN: r86919
2004-09-01 17:51:42 +00:00
Mike Stump
156a126c4f darwin.c (machopic_symbol_defined_p): In addition to being SYMBOL_REF_LOCAL_P...
* config/darwin.c (machopic_symbol_defined_p): In addition to
	being SYMBOL_REF_LOCAL_P, a symbol must also be
	! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
	defined in this output file, or translation unit in the case
	of IMA not being used.
	(machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
	never need .indirect_symbol when indirecting.

From-SVN: r86915
2004-09-01 17:18:02 +00:00
Mark Mitchell
ffbef0240f * g++.dg/opt/loop1.C: Do not XFAIL.
From-SVN: r86914
2004-09-01 17:16:16 +00:00
Jakub Jelinek
a5d8b097a4 * Makefile.in (bb-reorder.o): Add several dependencies.
From-SVN: r86913
2004-09-01 19:12:34 +02:00
Jakub Jelinek
266bff3a21 fold-const.c (operand_equal_p): Require equal sign also for FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
* fold-const.c (operand_equal_p): Require equal sign also for
	FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.

	* gcc.c-torture/execute/20040831-1.c: New test.

From-SVN: r86906
2004-09-01 18:33:06 +02:00
Richard Earnshaw
3207853238 config.gcc (--with-cpu on ARM): Preserve the canonical cpu name for use in configargs.h.
* config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
for use in configargs.h.  Put the cname in a separate variable.  Use
that to set target_cpu_default2.

From-SVN: r86903
2004-09-01 16:27:05 +00:00
Robert Bowdidge
5f6e6a1c41 Makefile.in: Move BOOT_CFLAGS above host makefile fragment include.
* Makefile.in: Move BOOT_CFLAGS above host makefile fragment include.
       * configure.in: add test for powerpc-*-darwin* to specify makefile frag
       * configure: regenerate
       * config/mh-ppc-darwin: create file, override BOOT_CFLAGS for
         -mdynamic-no-pic

From-SVN: r86902
2004-09-01 09:23:13 -07:00
Arnaud Charlet
23c7b149bd Fix commit date in previous set of changes.
From-SVN: r86887
2004-09-01 17:18:11 +02:00
J"orn Rennecke
c0311627d1 config/sh/sh.md ("length"): Increase branch length when SH1 pic code to 18:
12 bytes of instructions, 4 byte for the constant, 2 byte for aligning the
constant.

Co-Authored-By: Nick Clifton <nickc@redhat.com>

From-SVN: r86886
2004-09-01 13:43:40 +00:00
Richard Earnshaw
d98a72fd4f arm-cores.def (ARM_CORE): Add new field for the real name of the CPU.
* arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
CPU.
(arm7tdmi-s): New CPU name.
* arm/arm.c (ARM_CORE): Update for new format.
* arm/arm.h (ARM_CORE): Likewise.
* arm/gentune.sh: Update for extra field.
* config.gcc: Likewise.
* arm/arm-tune.md: Regenerate.
* doc/invoke.texi: Document the real processor names for ARM cpus.

From-SVN: r86884
2004-09-01 12:49:30 +00:00
Arnaud Charlet
6cdb2c6e80 [multiple changes]
2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.

	* trans.c (struct stmt_group): Delete field GLOBAL.
	(gnat_init_stmt_group): Do not initialize it.
	(call_to_gnu): Use save_expr, not protect_multiple_eval.
	(Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
	(gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
	(gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
	(start_stmt_group): Likewise.
	(add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.

	* utils2.c (ggc.h): Include.
	(build_call_raise): Call build_int_cst, not build_int_2.

	* utils.c (gnat_init_decl_processing): Fix arg to
	build_common_tree_nodes.
	(create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
	(gnat_define_builtin): Set built_in_decls.
	(init_gigi_decls): Call build_int_cst, not build_int_2.

	* ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
	(GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
	(GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
	(TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
	SET_TYPE_MODULE): Use them.
	(TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
	(SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
	(SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
	SET_TYPE_ADA_SIZE): Likewise.
	(TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
	(DECL_CONST_CORRESPONDING_VAR,
	SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
	(DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
	(TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
	(TYPE_RM_SIZE_NUM): New macro.
	(TYPE_RM_SIZE): Modified to use above.

	* cuintp.c: (build_cst_from_int): New function.
	(UI_To_gnu): Use it.

	* decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
	(make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
	(gnat_substitute_in_type, case ARRAY_TYPE): If old had a
	MIN_EXPR for the size, copy it into new.

2004-08-31  Robert Dewar  <dewar@gnat.com>

	* exp_ch6.adb (Expand_Call): Properly handle validity checks for
	packed indexed component where array is an IN OUT formal. This
	generated garbage code previously.

	* gnat_ugn.texi: Document -fverbose-asm

	* gnat-style.texi: Minor updates (note that boolean constants and
	variables are joined with AND/OR rather than short circuit forms).

2004-08-31  Ed Schonberg  <schonberg@gnat.com>

	* exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
	it is an upward conversion of an untagged type with no representation
	change.

2004-08-31  Thomas Quinot  <quinot@act-europe.fr>

	* rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
	System.Partition_Interface.

	* checks.adb (Apply_Access_Checks): Do not generate checks when
	expander is not active (but check for unset reference to prefix of
	dereference).

	* sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
	pragma Debug as an if statement with a constant condition, for
	consistent treatment of entity references contained within the
	enclosed procedure call.

2004-08-31  Vincent Celier  <celier@gnat.com>

	* bindgen.adb: (Set_EA_Last): New procedure
	(Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
	Set_EA_Last.
	(Gen_Adafinal_Ada): If no finalization, adafinal does nothing
	(Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
	linked without errors.
	(Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
	ST and EA.
	(Gen_Exception_Table_C): Correct same bugs

	* vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches

	* g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
	on Windows, make sure that the drive letter is in upper case.

	* g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
	Windows, when the drive letter is added and Case_Sensitive is True, the
	drive letter is forced to upper case.

	* mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
	to Options_2 for the call to MLib.Utl.Gcc.

	* bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
	directory separator when defining BASE_DIR.

2004-08-19  Pascal Obry  <obry@gnat.com>

	* gprcmd.adb (Extend): Do not output trailing directory separator. This
	is not needed and it confuses Windows GNU/make which does not report
	directory terminated by a slash as a directory.
	(gprcmd): Idem for "pwd" internal command.

	* Makefile.generic: Use __GPRCOLON__ instead of pipe character in
	target names rewrite to fix regressions with recent version of
	GNU/make. Starting with GNU/make 3.80 the pipe character was not
	handled properly anymore.

From-SVN: r86883
2004-09-01 13:51:54 +02:00
Richard Earnshaw
0a1aa86740 * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
(floatdidf): New functions.
* arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
(floatdisf): New functions.
* t-arm-elf: Use them.

From-SVN: r86882
2004-09-01 11:14:21 +00:00
Andreas Schwab
4eb104c16c Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
* Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
	* raise.c [!IN_RTS]: Undef abort.

From-SVN: r86880
2004-09-01 10:46:47 +00:00
Ziemowit Laski
bc09584679 c-common.h (lookup_interface): Remove prototype.
[gcc/ChangeLog]
2004-09-01  Ziemowit Laski  <zlaski@apple.com>

	* c-common.h (lookup_interface): Remove prototype.
	(is_class_name): Rename to objc_is_class_name.
	(lookup_objc_ivar): Rename to objc_lookup_ivar.
	(get_current_scope): Rename to objc_get_current_scope.
	* c-decl.c (get_current_scope): Rename to objc_get_current_scope.
	* c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
	(yylexname): Call objc_is_class_name() instead of is_class_name().
	* c-typeck.c (build_external_ref): Call objc_lookup_ivar()
	instead of lookup_objc_ivar().
	* stub-objc.c (lookup_interface): Remove stub.
	(is_class_name): Rename to objc_is_class_name.
	(lookup_objc_ivar): Rename to objc_lookup_ivar.

[gcc/objc/ChangeLog]
2004-09-01  Ziemowit Laski  <zlaski@apple.com>

	* objc-act.c (lookup_interface): Make function 'static' and add a
	local prototype.
	(objc_check_decl, get_class_reference, objc_declare_alias,
	objc_declare_class, objc_is_object_ptr): Call objc_is_class_name()
	instead of is_class_name().
	(get_super_receiver, objc_clear_super_receiver): Call
	objc_get_current_scope() instead of get_current_scope().
	(is_class_name): Rename to objc_is_class_name.
	(lookup_objc_ivar): Rename to objc_lookup_ivar.

From-SVN: r86879
2004-09-01 07:55:39 +00:00
Paolo Bonzini
45f366abae Makefile.tpl (sorry): Remove.
2004-09-01  Paolo Bonzini  <bonzini@gnu.org>

	* Makefile.tpl (sorry): Remove.
	(clean-stage[+id+], clean-stage[+id+]-module): New targets.
	(cleanstrap targets): Depend on distclean, not distclean-stage1.
	(do-clean): Clean per-stage directories too.
	(do-distclean): Run distclean-stage1 too.
	(.NOTPARALLEL): Enable during toplevel bootstrap.
	(stage[+id+]-bubble): Enable parallel execution during
	the recursive invocation.
	* Makefile.in: Regenerate.

	Fix previous checkin:

	* Makefile.tpl: Move BOOT_CFLAGS above host makefile fragment
	include.
	* configure.in: Fix indentation.
	* configure: Regenerate.

From-SVN: r86878
2004-09-01 07:44:54 +00:00
David Billinghurst
727c24076a re PR fortran/16579 (gfortran: (ICHAR(CHAR(I)) .NE. I) when 128 <= I <= 255)
2004-09-01  David Billinghurst <David.Billinghurst@riotinto.com>

	PR fortran/16579
	* gfortran.dg/g77/20010610.f: Now passes.
	Copy from g77.f-torture/execute. Add dg-run directive.
	* gfortran.dg/g77/README: Update

From-SVN: r86876
2004-09-01 06:30:04 +00:00
Mark Mitchell
f9a024084f config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
* config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
	* config/arm/lib1funcs.asm: Do not include supplemental .S files
	when compiling for Symbian.
	* config/arm/symbian.h (RENAME_LIBRARY): New macro.
	(TARGET_OS_CPP_BUILTINS): Likewise.
	* config/arm/t-symbian (LIB1ASMFUNCS): Define.

From-SVN: r86875
2004-09-01 06:08:34 +00:00
Mark Mitchell
14945fe6b3 config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
* config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
	* config/arm/lib1funcs.asm: Do not include supplemental .S files
	when compiling for Symbian.
	* config/arm/symbian.h (RENAME_LIBRARY): New macro.
	(TARGET_OS_CPP_BUILTINS): Likewise.
	* config/arm/t-symbian (LIB1ASMFUNCS): Define.

[[Split portion of a mixed commit.]]

From-SVN: r86874.2
2004-09-01 06:08:30 +00:00
Stan Shebs
93415288cd * toplev.c (process_options): Ensure debug_hooks is initialized.
From-SVN: r86872
2004-09-01 05:39:12 +00:00
Andrew Pinski
c11ddb6824 rs6000-power2-1.c (t1, t2, t3, t4): Add volatile.
2004-08-31  Andrew Pinski  <pinskia@physics.uc.edu>

        * gcc.dg/rs6000-power2-1.c (t1, t2, t3, t4): Add volatile.
        * gcc.dg/rs6000-power2-2.c: Fix the scan-assembly for the store.
        (t1, t2, t3, t4): Add volatile.

From-SVN: r86871
2004-08-31 22:26:15 -07:00
Mark Mitchell
88ff8f7d0f Commit testcase
From-SVN: r86869
2004-09-01 03:49:42 +00:00
Mark Mitchell
dc40803a5b Fix typo
From-SVN: r86868
2004-09-01 03:46:05 +00:00
Mark Mitchell
505970fc33 target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
* target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
	* target.h (cxx): Add export_class_data.
	* config/arm/arm.c (arm_cxx_export_class_data): New function.
	(TARGET_CXX_EXPORT_CLASS_DATA): Use it.
	* testsuite/g++.dg/ext/visibility/arm1.C: New test.

	* cp-tree.h (DECL_CONSTRUCTION_VTABLE_P): New macro.
	* class.c (build_ctor_vtbl_group): Set DECL_CONSTRUCTION_VTABLE_P.
	* decl2.c (determine_visibility): Honor
	TARGET_CXX_EXPORT_CLASS_DATA.

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

From-SVN: r86867
2004-09-01 03:45:30 +00:00
Robert Bowdidge
be8fff8104 Makefile.in: Move BOOT_CFLAGS above host makefile fragment include.
* Makefile.in: Move BOOT_CFLAGS above host makefile fragment include.
	* configure.in: add test for powerpc-*-darwin* to specify makefile frag
	* configure: regenerate
	* config/mh-ppc-darwin: create file, override BOOT_CFLAGS for
	 -mdynamic-no-pic

From-SVN: r86866
2004-08-31 20:34:59 -07:00
Geoffrey Keating
a79d695a28 funcdef-storage-1.c: Add dg-options to suppress -pedantic-errors.
* gcc.dg/funcdef-storage-1.c: Add dg-options to suppress
	-pedantic-errors.

From-SVN: r86862
2004-09-01 01:05:56 +00:00
R. Kelley Cook
8af497258e Remove stray >>>>>>>
From-SVN: r86860
2004-09-01 00:49:11 +00:00
Kaz Kojima
bee9efbcc7 sh.c (output_branch): Check the insn length possibly in the delayed slot.
* config/sh/sh.c (output_branch): Check the insn length possibly
	in the delayed slot.

From-SVN: r86858
2004-09-01 00:28:30 +00:00
GCC Administrator
8f3649a48c Daily bump.
From-SVN: r86856
2004-09-01 00:16:11 +00:00
Paul Brook
244fada7d0 error.c (generate_error): Set both iostat and library_return.
* runtime/error.c (generate_error): Set both iostat and
	library_return.
testsuite/
	* gfortran.dg/eof_2.f90: New test.

From-SVN: r86852
2004-08-31 23:43:21 +00:00
Richard Kenner
a0ca8e0c48 tree-pretty-print.c (dump_generic_node, [...]): Add blank after ')'.
* tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
	blank after ')'.
	(op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.

From-SVN: r86851
2004-08-31 19:02:03 -04:00
Richard Kenner
d938569ceb Add missing newlines at two function headers
From-SVN: r86850
2004-08-31 18:59:23 -04:00
Richard Kenner
a4e9ffe591 c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
* c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
	(c_sizeof_of_alignof_type): Likewise.
	* expr.c (array_ref_element_size): Likewise.
	(highest_pow2_factor_for_target): Likewise.
	* gimplify.c (canonicalize_addr_expr): Likewise.
	(gimplify_compound_lval): Likewise.
	* stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
	* tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
	* varasm.c (assemble_variable): Likewise.
	(output_constant_def_contents): Alignments are unsigned.

From-SVN: r86848
2004-08-31 18:46:31 -04:00
Richard Kenner
631b67ce1f tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL gets modified.
* tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
	gets modified.

Co-Authored-By: Jeff Law <law@redhat.com>

From-SVN: r86847
2004-08-31 18:28:44 -04:00
Tobias Schlüter
149a42dd2d re PR fortran/16579 (gfortran: (ICHAR(CHAR(I)) .NE. I) when 128 <= I <= 255)
fortran/
PR fortran/16579
* trans-types.c (gfc_init_types): Make gfc_character1_type_node an
unsigned char.

testsuite/
PR fortran/16579
* gfortran.fortran-torture/execute/intrinsic_i_char.f90: New test.

From-SVN: r86846
2004-08-31 23:54:24 +02:00