Commit Graph

58 Commits

Author SHA1 Message Date
Ralf Corsepius
68c9c61a01 * thr-rtems.c: New file. Stub to compile.
From-SVN: r38084
2000-12-06 18:40:42 -07:00
Alexandre Oliva
03391b53b5 Rebuilt again, something went wrong last time
From-SVN: r38066
2000-12-06 17:16:32 +00:00
Robert Lipe
162f5967da Regenerate to pick up libtool fix. Per Alexandre Oliva.
From-SVN: r38063
2000-12-06 04:06:15 +00:00
Mark Mitchell
ae499ccea4 Move statement-tree facilities from C++ to C front-end.
* c-common.h (c_tree_index): Add CTI_VOID_ZERO.
	(void_zero_node): New macro.
	(struct stmt_tree_s): New type.
	(stmt_tree): New typedef.
	(struct language_function): New type.
	(last_tree): New macro.
	(last_expr_type): Likewise.
	(walk_tree_fn): New typedef.
	(current_stmt_tree): New function.
	(begin_stmt_tree): Likewise.
	(add_stmt): Likewise.
	(finish_stmt_tree): Likewise.
	(statement_code_p): Likewise.
	(lang_statement_code_p): New variable.
	(walk_stmt_tree): New function.
	(STMT_IS_FULL_EXPR_P): New macro.
	* c-common.c (lang_statement_code_p): New variable.
	(c_common_nodes_and_builtins): Initialize void_zero_node.
	(statement_code_p): New function.
	(walk_stmt_tree): Likewise.
	* c-decl.c (language_function): Rename to ...
	(c_language_function): ... this.  Include language_function.
	(push_c_function_context): Adjust accordingly.
	(pop_c_function_context): Likewise.
	(mark_c_function_context): Likewise.
	(current_stmt_tree): Define.
	* c-semantics.c (begin_stmt_tree): New function.
	(add_stmt): Likewise.
	(prune_unused_decls): Likewise.
	(finish_stmt_tree): Likewise.

	Move statement-tree facilities from C++ to C front-end.
	* cp-tree.h (cp_tree_index): Remove CPTI_VOID_ZERO.
	(void_zero_node): Remove.
	(stmt_tree): Likewise.
	(scope_chain): Adjust.
	(language_function): Rename to cp_language_function.
	(cp_function_chain): Adjust.
	(current_stmt_tree): Remove.
	(last_tree): Likewise.
	(last_expr_type): Likewise.
	(struct lang_decl): Adjust.
	(STMT_IS_FULL_EXPR_P): Remove.
	(add_tree): Remove.
	(begin_stmt_tree): Likewise.
	(finish_stmt_tree): Likewise.
	(walk_tree_fn): Likewise.
	(walk_stmt_tree): Likewise.
	* class.c (finish_struct): Replace use of add_tree with add_stmt.
	* decl.c (mark_stmt_tree): Adjust type.
	(init_decl_processing): Don't build void_zero_node.
	(initialize_local_var): Adjust usage of current_stmt_tree.
	(finish_enum): Use add_stmt, not add_tree.
	(save_function_data): Adjust use of language_function.
	(finish_constructor_body): Use add_stmt, not add_tree.
	(finish_destructor_body): Likewise.
	(push_cp_function_context): Adjust use of language_function.
	(pop_cp_function_context): Likewise.
	(mark_lang_function): Likewise.
	(mark_cp_function_context): Likewise.
	* init.c (build_aggr_init): Adjust use of current_stmt_tree.
	(build_vec_init): Likewise.
	* semantics.c (SET_LAST_STMT): Remove.
	(RECHAIN_STMTS): Don't use it.
	(stmts_are_full_exprs_p): Adjust use of current_stmt_tree.
	(current_stmt_tree): Define.
	(add_tree): Remove.
	(finish_goto_stmt): Use add_stmt, not add_tree.
	(finish_expr_stmt): Likewise.
	(begin_if_stmt): Likewise.
	(finish_then_clause): Likewise.
	(begin_while_stmt): Likewise.
	(begin_do_stmt): Likewise.
	(finish_return_stmt): Likewise.
	(begin_for_stmt): Likewise.
	(finish_break_stmt): Likewise.
	(finish_continue_stmt): Likewise.
	(begin_switch_stmt): Likewise.
	(finish_case_label): Likewise.
	(begin_try_block): Likewise.
	(begin_function_try_block): Likewise.
	(begin_handler): Likewise.
	(begin_catch_block): Likewise.
	(begin_compound_stmt): Likewise.
	(begin_asm_stmt): Likewise.
	(finish_asm_stmt): Likewise.
	(finish_label_stmt): Likewise.
	(add_decl_stmt): Likewise.
	(finish_subobject): Likewise.
	(finish_decl_cleanup): Likewise.
	(finish_named_return_value): Likewise.
	(setup_vtbl_ptr): Likewise.
	(add_scope_stmt): Likewise.
	(finish_stmt_expr): Likewise.
	(prune_unused_decls): Remove.
	(begin_stmt_tree): Likewise.
	(finish_stmt_tree): Likewise.
	(prep_stmt): Adjust use of current_stmt_tree.
	(lang_expand_stmt): Likewise.
	* tree.c (statement_code_p): Remove.
	(cp_statement_code_p): New function.
	(walk_stmt_tree): Remove.
	(init_tree): Set lang_statement_code_p.

From-SVN: r36221
2000-09-07 01:36:11 +00:00
Alexandre Oliva
6d93bca4fe * configure: Rebuilt with new libtool.m4.
From-SVN: r36199
2000-09-06 14:08:04 +00:00
Ovidiu Predescu
9d10fcf978 configure.in: Create a config.h file.
Tue Aug 15 00:38:56 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>

	* configure.in: Create a config.h file. Check for <sched.h>.
	* configure: Regenerate.

	* config.h.in: Check for <sched.h>.

From-SVN: r35698
2000-08-15 07:39:20 +00:00
Ovidiu Predescu
f3fc0ba86b Check for <sched.h>.
From-SVN: r35697
2000-08-15 07:38:54 +00:00
Ovidiu Predescu
d972a4c286 Create a config.h file. Check for <sched.h>.
From-SVN: r35696
2000-08-15 07:38:04 +00:00
Zack Weinberg
57119aa9eb top level:
* configure: Make enable_threads and enable_shared defaults
	explicit.  Substitute enable_threads into generated Makefiles.
	* configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
	* libtool.m4: Accept *-*-linux* not just *-*-linux-gnu*.
gcc:
	* configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
	* fixinc/inclhack.def: Likewise.
	* fixinc/mkfixinc.sh: Likewise.
	* configure: Regenerate.
	* fixinc/fixincl.x: Regenerate.
	* install.texi: Document equivalence of linux and linux-gnu.
libio:
	* configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
	Honor --disable-threads.
libstdc++:
	* configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
	Honor --disable-threads.
libstdc++-v3:
	* configure: Regenerate after change to ../libtool.m4.
libobjc:
	* configure: Regenerate after change to ../libtool.m4.

From-SVN: r35680
2000-08-14 18:08:46 +00:00
Andreas Schwab
b310e72532 * objc-features.texi (Top): Move @menu at end of node.
From-SVN: r35674
2000-08-14 08:06:53 -06:00
Manfred Hollstein
82fbe83592 * objc-features.texi: Move @node Top before @menu.
From-SVN: r35643
2000-08-11 15:25:29 -06:00
Ovidiu Predescu
b3dc253f84 objc-features.texi: Documented the new -fconstant-string-class option.
Sun Aug  6 23:27:49 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>

	* objc-features.texi: Documented the new -fconstant-string-class
	option.

From-SVN: r35538
2000-08-07 06:28:07 +00:00
Ovidiu Predescu
9f942e8c17 Documented the new -fconstant-string-class option.
From-SVN: r35537
2000-08-07 06:27:47 +00:00
Ovidiu Predescu
9bc3876e69 thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to improve the Posix thread...
Sun Aug  6 22:51:16 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>

	* thr-posix.c: Integrated Chris Ball's <cball@fmco.com> changes to
	improve the Posix thread support for Objective-C.

From-SVN: r35536
2000-08-07 05:51:41 +00:00
Ovidiu Predescu
54359cf93b Integrated Chris Ball's <cball@fmco.com> changes to improve the Posix
thread support for Objective-C.

From-SVN: r35535
2000-08-07 05:51:14 +00:00
Zack Weinberg
8cab40f72e aclocal.m4: Replace copy of ../libtool.m4 with sinclude(../libtool.m4).
* aclocal.m4: Replace copy of ../libtool.m4 with
	sinclude(../libtool.m4).

From-SVN: r35502
2000-08-05 01:13:37 +00:00
Nicola Pero
c161c99b43 Added libtool support for building libobjc.
From-SVN: r35329
2000-07-29 19:19:43 +00:00
Ovidiu Predescu
9c14a607e8 Removed the explicit prototypes for strlen and memcpy on 64-bit
platforms (Suggested by Rodney Brown <rdb@cup.hp.com>).

From-SVN: r35326
2000-07-29 07:11:04 +00:00
H.J. Lu
15794a9567 Applied H.J.Lu's patch to not require -lpthread when compiling single threaded Objective-C programs.
From-SVN: r35141
2000-07-20 07:27:26 +00:00
Kaveh R. Ghazi
8dd8d754d2 * objc/hash.h: Include string.h.
From-SVN: r35019
2000-07-13 18:56:49 +00:00
David Edelsohn
39b48e0238 * Object.m (strlen): 64-bit PowerPC is a 64bit platform as well.
From-SVN: r33170
2000-04-15 18:13:49 -04:00
Jakub Jelinek
35f1099824 encoding.c (objc_layout_structure_next_member): Do the whole procedure even for the first member, so that we get correct alignment.
* encoding.c (objc_layout_structure_next_member): Do the whole
	procedure even for the first member, so that we get correct
	alignment.

From-SVN: r33110
2000-04-12 17:55:54 +02:00
Jakub Jelinek
bcdb110625 objc-act.c: Include ggc.h.
* objc/objc-act.c: Include ggc.h.
	(objc_tree_index, objc_global_trees): Convert most of the
	static tree variables into a static array with previous names
	as defines.
	(objc_ellipsis_node): New variable.
	(lang_init): Call objc_act_parse_init and c_parse_init.
	Create objc_ellipsis_node.
	(build_selector_translation_table): Use objc_ellipsis_node instead
	of (tree)1.
	(hack_method_prototype): Likewise.
	(get_arg_type_list): Likewise.
	(start_method_def): Likewise.
	(continue_method_def): Likewise.
	(gen_method_decl): Likewise.
	(ggc_mark_imp_list): New function.
	(ggc_mark_hash_table): New function.
	(objc_act_parse_init): New function.
	* objc/objc-act.h (objc_ellipsis_node): Add extern variable.
	* c-parse.in (c_parse_init): For objc add roots of objc specific
	local tree variables.
	* objc/objc-parse.y: Rebuilt.
	* objc/objc-parse.c: Rebuilt.
	(opt_parm_list): Use objc_ellipsis_node instead of (tree)1.

	* Object.m (strlen): Provide prototype on all 64bit platforms,
	not only alpha.
	* sarray.c (memcpy): Likewise.
	* encoding.c (objc_layout_finish_structure): Don't use
	ROUND_TYPE_ALIGN on sparc.

From-SVN: r33092
2000-04-12 09:22:32 +02:00
Zack Weinberg
2e3120e80d Protocol.h, [...]: Change #endif labels to comments.
* objc/Protocol.h, objc/objc-list.h: Change #endif labels to
	comments.

From-SVN: r32812
2000-03-29 20:19:06 +00:00
Zack Weinberg
6fc605d843 Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
* libobjc/Makefile.in: Add -DIN_TARGET_LIBS to ALL_CFLAGS.
	* gcc/config/i386/i386.h: If IN_TARGET_LIBS is defined, make
	BIGGEST_FIELD_ALIGNMENT a constant.

From-SVN: r32110
2000-02-23 08:43:44 +00:00
Chris Ball
224a6bca72 Fixed deallocation of a mutex in thr-single.c (patch from Chris Ball <cball@fmco.com>).
From-SVN: r29701
1999-09-29 00:37:49 +00:00
Jeffrey A Law
e36e6e0261 Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to the compiler when building C code.
* Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
        the compiler when building C code.

From-SVN: r29543
1999-09-21 07:48:59 -06:00
Jeff Law
c5c7673583 Merge in gcc2-ss-010999
From-SVN: r29150
1999-09-06 23:49:18 -06:00
Daniel Jacobowitz
76632dd06d Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix, libdir, libsubdir and tooldir.
* Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
        libdir, libsubdir and tooldir.
Applied in libchill, libf2c, libiberty and libobjc

From-SVN: r28569
1999-08-06 23:37:16 -06:00
John David Anglin
6000b42b21 init.c (__objc_force_linking): Make global.
�
        * init.c (__objc_force_linking): Make global.

From-SVN: r27638
1999-06-20 22:41:41 -06:00
Jeff Law
6de94858b9 libchill, libf2c, libobjc:
* configure.in (AC_PREREQ): Update to 2.13.
        (AC_EXEEXT): Call to find possible file extension.
        (compiler_name): Use.
        * configure: Regenerate.
libio, libstdc++
        * configure.in: Test for ${compiler_name}.exe as well.

From-SVN: r27050
1999-05-19 20:27:28 -06:00
Alexandre Oliva
ceff9b1445 Fixed some old ChangeLog entries I wrote before becoming aware of the GNU
coding standards.

From-SVN: r26679
1999-04-27 13:27:29 +00:00
Mumit Khan
7af06410ba Makefile.in (CC1OBJ): Define in terms of CC.
* Makefile.in (CC1OBJ): Define in terms of CC.
        (runtime-info.h): Use.

From-SVN: r26618
1999-04-24 18:21:51 -06:00
Ovidiu Predescu
09608fa2b0 Updated the URL to Boehm's GC page.
From-SVN: r26292
1999-04-08 09:23:35 +00:00
Ovidiu Predescu
56d654e4d7 Explicitly specify the char arguments to __objc_code_char and __objc_code_char as being signed.
From-SVN: r26008
1999-03-26 23:44:04 +00:00
Mumit Khan
da4b192759 configure.in (AC_PREREQ): Update to 2.13.
�
        * configure.in (AC_PREREQ): Update to 2.13.
        (AC_EXEEXT): Call to find possible file extension.
        (compiler_name): Use.
        * configure: Regenerate.

From-SVN: r25955
1999-03-24 14:46:41 -07:00
Mumit Khan
e33abc2d02 configure.in (AC_PREREQ): Update to 2.13.
�
        * configure.in (AC_PREREQ): Update to 2.13.
        (AC_EXEEXT): Call to find possible file extension.
        (compiler_name): Use.
        * configure: Regenerate.

From-SVN: r25954
1999-03-24 14:46:39 -07:00
Jeffrey A Law
ab87f8c8d1 Merge in gcc2 snapshot 19980929. See gcc/ChangeLog and gcc/FSFChangeLog for
details.

From-SVN: r24879
1999-01-26 18:43:17 -07:00
Jeff Law
5f38fdda61 Update FSF address in copyright header.
From-SVN: r24614
1999-01-11 06:34:38 -07:00
Jeffrey A Law
79014e6f0b configure.in (thread_file): Correct and simplify code to find the thread file.
* configure.in (thread_file): Correct and simplify code to find
        the thread file.
        * configure: Rebuilt.

From-SVN: r24494
1999-01-04 17:40:22 -07:00
Manfred Hollstein
71205e0b3f configure (skip-this-dir): Add handling for new shell script...
./ChangeLog:1998-11-26  Manfred Hollstein  <manfred@s-direktnet.de>
	* configure (skip-this-dir): Add handling for new shell script, which
	might be created by a sub-directory's configure to indicate, this particular
	directory is "unwanted".
	* Makefile.in ($(CONFIGURE_TARGET_MODULES)): Likewise.
./gcc/ChangeLog:1998-11-26  Manfred Hollstein  <manfred@s-direktnet.de>
	* Makefile.in (CONFIG_LANGUAGES): New macro taking all languages
	which can be configured.
	(LANGUAGES): Use $(CONFIG_LANGUAGES) instead of @all_languages@
	(Makefile): Pass actual LANGUAGES through the environment when
	re-configuring.
	(cstamp-h): Likewise.
	(config.status): Likewise.
	* configure.in (enable_languages): Add new configuration parameter
	"--enable-languages=lang1,lang2,...".
	(${srcdir}/*/config-lang.in): Change handling to configure only
	those directories, that the user might have enabled; default to
	"all" existing languages.
	* configure: Regenerate.
./libchill/ChangeLog:1998-11-26  Manfred Hollstein  <manfred@s-direktnet.de>
	* configure.in (compiler_name): Add check to detect if this
	language's compiler has been built.
	* configure: Regenerate.
./libf2c/ChangeLog:1998-11-26  Manfred Hollstein  <manfred@s-direktnet.de>
	* configure.in (compiler_name): Add check to detect if this
	language's compiler has been built.
	* configure: Regenerate.
./libio/ChangeLog:1998-11-26  Manfred Hollstein  <manfred@s-direktnet.de>
	* configure.in (compiler_name): Add check to detect if this
	language's compiler has been built.
./libobjc/ChangeLog:1998-11-26  Manfred Hollstein  <manfred@s-direktnet.de>
	* configure.in (compiler_name): Add check to detect if this
	language's compiler has been built.
	* configure: Regenerate.
./libstdc++/ChangeLog:1998-11-26  Manfred Hollstein  <manfred@s-direktnet.de>
	* configure.in (compiler_name): Add check to detect if this
	language's compiler has been built.

From-SVN: r23892
1998-11-26 01:48:34 +00:00
Kaveh R. Ghazi
223a884814 * configure.in: Use AC_PREREQ(2.12.1).
From-SVN: r23802
1998-11-23 13:51:40 +00:00
Jeffrey A Law
74285159e4 * Makefile.in (runtime-info.h): Avoid GNU make extensions.
From-SVN: r23722
1998-11-19 12:36:30 -07:00
Kaveh R. Ghazi
84beab3827 * Makefile.in (INCLUDES): Add -I$(srcdir)/$(MULTISRCTOP)../include.
From-SVN: r23575
1998-11-08 14:47:19 +00:00
Kaveh R. Ghazi
8a829fd982 * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
From-SVN: r23218
1998-10-22 11:39:46 +00:00
Ovidiu Predescu
befb6d14df Minor changes in the documentation. Correctly define get_inner_array_type.
From-SVN: r23144
1998-10-16 22:19:22 +00:00
Richard Frith-Macdonald
1df287f8fb encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
* encoding.c (objc_skip_type_qualifiers): Handle _C_BYREF.
        (objc_get_type_qualifiers): Similarly.
        * objc/encoding.h (_C_BYREF): Define.
        (_F_BYREF): Define.

From-SVN: r22917
1998-10-08 05:23:35 -06:00
David S. Miller
07181a20e3 sarray.h: Make boffset be an unsigned long when sparc so it works out on 64-bit systems.
* objc/sarray.h: Make boffset be an unsigned long when sparc so it
	works out on 64-bit systems.

From-SVN: r22881
1998-10-06 19:21:54 -07:00
Alexandre Oliva
5e2f657bb6 * Makefile.in (INCLUDES): Make it multilib-friendly
From-SVN: r22871
1998-10-06 13:33:27 -06:00
H.J. Lu
4afb3646a5 * Makefile.in (INCLUDES): Add -I$(srcdir)/../gcc.
From-SVN: r22750
1998-10-02 04:18:19 -06:00