Commit Graph

35415 Commits

Author SHA1 Message Date
Alexandre Oliva
8d75ad04d0 cppfiles.c (remove_component_p): Don't assume lstat/stat will keep errno unchanged on success.
* cppfiles.c (remove_component_p): Don't assume lstat/stat will
keep errno unchanged on success.

From-SVN: r42445
2001-05-22 11:57:21 +00:00
Loren J. Rittle
75f153f3d4 Makefile.in (stamp-h): Create in $(objdir) instead of $(srcdir).
* libI77/Makefile.in (stamp-h): Create in $(objdir) instead
	of $(srcdir).

From-SVN: r42442
2001-05-22 11:16:51 +00:00
Joseph Myers
c215b29f5a c-lex.c (lex_number): If pedantic and not C99...
* c-lex.c (lex_number): If pedantic and not C99, pedwarn exactly
	once for hexadecimal floats, whether or not they contain a decimal
	point.  Don't let the setting of pedantic otherwise affect the
	parsing of hexadecimal floats.

testsuite:
	* gcc.dg/c90-hexfloat-1.c: Add more tests.

From-SVN: r42440
2001-05-22 12:02:17 +01:00
Alexandre Oliva
a7bc0fbbfe ltcf-cxx.sh (allow_undefined_flag, [...]): Prepend blank.
* ltcf-cxx.sh (allow_undefined_flag, no_undefined_flag)
[aix4*|aix5*]: Prepend blank.

From-SVN: r42438
2001-05-22 10:40:41 +00:00
Gerald Pfeifer
252ba2d485 * README.ACORN: Remove obsolete file.
From-SVN: r42436
2001-05-22 10:07:31 +00:00
Jan Hubicka
8c9864f32d combine.c (gen_binary): Use swap_commutative_operands_p
* combine.c (gen_binary): Use swap_commutative_operands_p
        (simplify_comparison): Likewise.
        * expmed.c (emit_store_flag): Likewise.
        * expr.c (compare_from_rtx): Likewise.
        (do_compare_rtx_and_jump): Likewise.
        * optabs.c (emit_cmp_and_jump_insn): Revert last patch; abort
        if not emitting a branch and operands want swapping.

From-SVN: r42433
2001-05-22 00:40:26 -07:00
Neil Booth
083e9f9217 c-lex.c (c_lex): Just cast cpp's hashnode to gcc's one.
* c-lex.c (c_lex): Just cast cpp's hashnode to gcc's one.
	* stringpool.c:	(IS_FE_IDENT, make_identifier): Delete.
	(maybe_get_identifier): Update.
	* tree.h (make_identifier): Delete.

From-SVN: r42432
2001-05-22 07:23:37 +00:00
GCC Administrator
bada7cdabb Daily bump.
From-SVN: r42430
2001-05-22 07:16:13 +00:00
Richard Henderson
0a33d11eab combine.c (subst): Do not substitute for a register as a destination...
* combine.c (subst): Do not substitute for a register as
        a destination subreg/strict_low_part/zero_extract.

From-SVN: r42429
2001-05-21 23:58:17 -07:00
Per Bothner
c93d7fae7b Implement invocation interface; don't create new thread for main.
From-SVN: r42428
2001-05-21 23:47:48 -07:00
Richard Henderson
b4fbaca7cb combine.c (simplify_comparison): Update op1 after constant extension.
* combine.c (simplify_comparison): Update op1 after constant
        extension.
        * recog.c (const_int_operand): Accept only constants valid
        for the given mode.
        * genrecog.c: Update comments wrt const_int_operand.

From-SVN: r42427
2001-05-21 23:46:20 -07:00
Mark Mitchell
47816305fe * gcc_build: Use -d when invoking gcc_update.
From-SVN: r42426
2001-05-22 06:45:44 +00:00
Per Bothner
57d02dd3e6 Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).
* Makefile.am (libgcj_la_DEPENDENCIES):  Add $(nat_files).
	(libgcj_la_LIBADD):  Likewise.
	(libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD):  Add $(x_nat_files).

From-SVN: r42424
2001-05-21 23:40:06 -07:00
Richard Henderson
d425c5b05f emit-rtl.c (init_emit_once): Zero unused memory in a CONST_DOUBLE.
* emit-rtl.c (init_emit_once): Zero unused memory in a
        CONST_DOUBLE.

From-SVN: r42423
2001-05-21 23:29:39 -07:00
Benjamin Kosnik
9ea659ac82 std_cstring.h (memchr): Define "C" functions to __glibcpp_memchr.
2001-05-21  Stephen M. Webb  <stephen@bregmasoft.com>

	* include/c_std/bits/std_cstring.h (memchr): Define "C" functions to
	__glibcpp_memchr.
	(strchr): Same, but to __glibcpp_strchr.
	(strpbrk): Same.
	(strrchr): Same.
	(strstr): Same.
	* include/c_std/bits/std_cwchar.h (wcschr): Same.
	(wcsbrk): Same.
	(wcsrchr): Same.
	(wcsstr): Same.
	(wmemchr): Same.

From-SVN: r42421
2001-05-22 04:58:45 +00:00
Benjamin Kosnik
d4fae8b1f0 c_strings.cc (main): Fix.
2001-05-21  Benjamin Kosnik  <bkoz@kredhat.com>

	* testsuite/21_strings/c_strings.cc (main): Fix.

From-SVN: r42420
2001-05-22 04:58:14 +00:00
Per Bothner
ef0a7b49a9 javaprims.h (_Jv_FormatInt): New declaration.
* gcj/javaprims.h (_Jv_FormatInt):  New declaration.
	* java/lang/natString.cc (_JvFormatInt):  New primitive, with logic
	taken from old Integer.toString code.
	(Integer::valueOf):  Use _Jv_FormatInt.
	* java/lang/Integer.java (toString):  Just use call String.valueOf.
	* java/lang/Long.java (toString):  Fix typo in comment.
	* java/lang/String.java (valueOf(int)):  Make native.
	* java/lang/StringBuffer.java (append(int)):  Make native.
	* java/lang/natStringBuffer.cc:  New file, for append(jint).
	* Makefile.am (ant_source_files):  Add java/lang/natStringBuffer.cc.

From-SVN: r42419
2001-05-21 21:38:37 -07:00
Mark Mitchell
f5d6a24c2e tree.h (type_num_arguments): Declare it.
* tree.h (type_num_arguments): Declare it.
	* tree.c (type_num_arguments): New function.

From-SVN: r42418
2001-05-22 03:03:26 +00:00
Jason Merrill
ca29c7970a * mt-linux (CXXFLAGS_FOR_TARGET): Lose -fvtable-thunks.
From-SVN: r42415
2001-05-21 21:17:23 -04:00
Jason Merrill
e17f04743d lose START_CATCH_STMT
From-SVN: r42414
2001-05-21 20:52:58 -04:00
Mark Mitchell
3f41ffd8c3 call.c (build_op_delete_call): Ignore exception-specifications when looking for matching delete operators.
* call.c (build_op_delete_call): Ignore exception-specifications
	when looking for matching delete operators.
	* init.c (build_new_1): Compute whether or not the allocation
	function used is a placement allocation function or not, and
	communicate this information to build_op_delete_call.

From-SVN: r42413
2001-05-22 00:31:36 +00:00
Richard Henderson
b1e6ab035e dwarf2out.c (current_funcdef_number): Move outside dwarf2 conditional ifdef.
* dwarf2out.c (current_funcdef_number): Move outside dwarf2
        conditional ifdef.

From-SVN: r42411
2001-05-21 16:30:51 -07:00
Per Bothner
075516bcc6 jcf-parse.c (read_class): If class is from .class or .zip file and it's already been read...
* jcf-parse.c (read_class):  If class is from .class or .zip file
	and it's already been read, don't push/pop parser context.

From-SVN: r42407
2001-05-21 14:37:36 -07:00
Geoffrey Keating
4694cec254 920520-1.x: Merge previous contents into this file.
* gcc.c-torture/compile/920520-1.x: Merge previous contents into
	this file.

From-SVN: r42406
2001-05-21 20:38:05 +00:00
Tom Tromey
8ffd89ad1b * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.
From-SVN: r42405
2001-05-21 19:27:10 +00:00
Geoffrey Keating
50a0b056d2 rs6000.md (maxsf3): Use rs6000_emit_minmax.
* config/rs6000/rs6000.md (maxsf3): Use rs6000_emit_minmax.
	(maxsf3+1): Delete.
	(minsf3): Use rs6000_emit_minmax.
	(minsf3+1): Generalize to handle both SMIN and SMAX.  Use
	rs6000_emit_minmax.
	(movsfcc): Use rs6000_emit_cmove.
	(fselsfsf4): Don't compare a CONST_INT with a floating-point value.
	Don't generate emit_fselsfsf4.
	(fseldfsf4): Likewise.
	(maxdf3): Use rs6000_emit_minmax.
	(maxdf3+1): Delete.
	(mindf3): Use rs6000_emit_minmax.
	(mindf3+1): Generalize to handle both SMIN and SMAX.  Use
	rs6000_emit_minmax.
	(movdfcc): Use rs6000_emit_cmove.
	(fseldfdf4): Don't compare a CONST_INT with a floating-point value.
	Don't generate emit_fselsfsf4.
	(fselsfdf4): Likewise.
	* config/rs6000/rs6000.c (zero_fp_constant): New predicate.
	(min_max_operator): New predicate.
	(rs6000_emit_cmove): New function.
	(rs6000_emit_minmax): New function.
	* config/rs6000/rs6000-protos.h: Prototype new functions.
	* config/rs6000/rs6000.h (PREDICATE_CODES): Add zero_fp_constant
	and min_max_operator.

	* config/rs6000/rs6000.c (output_cbranch): Handle all
	conditional types in the switch statement.

From-SVN: r42404
2001-05-21 18:38:25 +00:00
Mark Mitchell
0adc3c1971 c-decl.c (finish_decl): Don't set DECL_C_HARD_REGISTER for non-register variables.
* c-decl.c (finish_decl): Don't set DECL_C_HARD_REGISTER for
	non-register variables.
	* extend.texi: Document that asm-specifications do not make sense
	for non-static local variables.

From-SVN: r42403
2001-05-21 18:36:57 +00:00
Andrew Haley
01936f3a7d dwarf2-signal.h: New file.
2001-05-18  Andrew Haley  <aph@cambridge.redhat.com>

        * include/dwarf2-signal.h: New file.
        * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC.
        * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC.
        * configure: Rebuilt.

From-SVN: r42400
2001-05-21 16:59:42 +00:00
Jason Merrill
68981e3a32 fix comment
From-SVN: r42396
2001-05-21 12:06:37 -04:00
Jason Merrill
90ecce3e49 class.c (build_vtable_entry_ref): Lose vtbl parm.
* class.c (build_vtable_entry_ref): Lose vtbl parm.  Fix for new abi.
        (build_vtbl_ref): Adjust.
        (dfs_accumulate_vtbl_inits): Set TREE_CONSTANT on the vtable address.
        * decl2.c (lang_f_options): Remove huge-objects, vtable-thunks.
        Re-add vtable-gc.
        (unsupported_options): Correspondingly.

        * decl2.c (maybe_make_one_only): Check flag_weak, not
        supports_one_only().

From-SVN: r42393
2001-05-21 11:55:40 -04:00
Jason Merrill
5c1e4fd7e7 class.c (build_vtable): Set DECL_ASSEMBLER_NAME for vtables here.
* class.c (build_vtable): Set DECL_ASSEMBLER_NAME for vtables here.
        (get_vtable_decl, build_vtt): Not here.

From-SVN: r42392
2001-05-21 11:54:33 -04:00
Jason Merrill
deda4b764e dbxout.c (MINIMAL_DEBUG, [...]): Lose.
* dbxout.c (MINIMAL_DEBUG, flag_minimal_debug): Lose.
        (dbxout_type_fields): Lose minimal_debug support.
        (dbxout_type_methods, dbxout_type): Likewise.

From-SVN: r42391
2001-05-21 11:48:49 -04:00
Jason Merrill
7a81cf7f5c add vague linkage node
From-SVN: r42389
2001-05-21 11:41:05 -04:00
Jason Merrill
1a6025b4b8 cp-tree.def (START_CATCH_STMT): Lose.
* cp-tree.def (START_CATCH_STMT): Lose.
        * dump.c (cp_dump_tree): Don't dump it.  Do dump HANDLER_PARMS.
        * tree.c (cp_statement_code_p): Don't case it.
        * semantics.c (cp_expand_stmt): Likewise.
        * except.c (expand_start_catch_block): Don't start any blocks.
        Return the type.
        (expand_end_catch_block): Don't end any blocks.
        * parse.y (handler): Don't pass anything from finish_handler_parms
        to finish_handler.
        * pt.c (tsubst_expr): Likewise.
        * semantics.c (begin_handler): Call note_level_for_catch here.
        (finish_handler_parms): Don't return anything.
        (genrtl_catch_block, begin_catch_block): Lose.
        (genrtl_handler): Call expand_start_catch here.
        * cp-tree.h (START_CATCH_TYPE): Lose.
        (HANDLER_TYPE): New.

From-SVN: r42388
2001-05-21 11:39:19 -04:00
Jason Merrill
0fd0b7ee98 tweak formatting
From-SVN: r42387
2001-05-21 09:17:58 -04:00
Andrew Haley
da50295639 linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
2001-05-17  Andrew Haley  <aph@redhat.com>

        * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.

From-SVN: r42386
2001-05-21 12:31:14 +00:00
Stephane Carrez
f0ef84a27f msp.c (A_SIZE): Define according to STACK_SIZE;
* gcc.c-torture/unsorted/msp.c (A_SIZE): Define according to
	STACK_SIZE;
	* gcc.c-torture/compile/991214-2.c (HISTO_SIZE): Define according
	to STACK_SIZE; Use it to define size of add_histo array.
	* gcc.c-torture/compile/920723-1.c (GITT_SIZE): Define according
	to STACK_SIZE.
	(f): Use GITT_SIZE to define size of gitt local table.
	* gcc.c-torture/compile/930621-1.c (BYTEMEM_SIZE): Define according
	to STACK_SIZE; Use it to define size of bytemem array.

From-SVN: r42384
2001-05-21 14:20:51 +02:00
Stephane Carrez
ef73e13988 20000804-1.x: New file, this test fails on 68HC11/HC12 due to the asm instruction.
* gcc.c-torture/compile/20000804-1.x: New file, this test fails
	on 68HC11/HC12 due to the asm instruction.
	* gcc.c-torture/compile/20001205-1.x: New file, ditto.
	* gcc.c-torture/compile/920520-1.x: Likewise.
	* gcc.c-torture/compile/20001226-1.x: New file, this test fails
	on 68HC11/HC12 because the function is larger than 64K.
	* gcc.c-torture/compile/961203-1.x: New file, this test fails
	on 68HC11/HC12 because the structure is too large.

From-SVN: r42381
2001-05-21 14:06:52 +02:00
Bryce McKinlay
1f4eb17d51 configure.in: Update boehm-gc include dir for new GC version.
* configure.in: Update boehm-gc include dir for new GC version.
	* configure: Rebuilt.
	* exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
	extern "C" wrapper.
	* boehm.cc: Update includes for new GC version. MAKE_PROC is now
	GC_MAKE_PROC. mark_proc is now GC_mark_proc.
	* posix-threads.cc: Only include <gc.h>. Don't need to wrap with
	extern "C".

From-SVN: r42380
2001-05-21 09:37:04 +01:00
Bryce McKinlay
9110a741e3 Imported version version 6.0alpha7.
* README, README.Mac, README.OS2, README.QUICK, README.alpha,
	README.amiga, README.debugging, README.dj, README.hp, README.linux,
	README.rs6000, README.sgi, README.solaris2, README.uts,
	README.win32, SCoptions.amiga, backptr.h, barrett_diagram,
	dbg_mlc.h, gc.h, gc.man, gc_alloc.h, gc_cpp.h, gc_hdrs.h, gc_mark.h,
	gc_priv.h, gc_private.h, gc_typed.h, gcconfig.h,
	hpux_irix_threads.c, makefile.depend, nursery.c,
	solaris_threads.h, test.c, test_cpp.cc, weakpointer.h, cord/README,
	cord/SCOPTIONS.amiga, cord/SMakefile.amiga, cord/cord.h,
	cord/ec.h, cord/gc.h, cord/private/cord_pos.h, include/backptr.h,
	include/gc_copy_descr.h, include/gc_nursery.h: Remove obsolete/moved
	files.

From-SVN: r42379
2001-05-21 09:35:14 +01:00
GCC Administrator
a6951ca5de Daily bump.
From-SVN: r42378
2001-05-21 07:16:41 +00:00
Richard Henderson
cf2fe5008f dwarf2out.c (DEBUG_FRAME_SECTION): Rename from FRAME_SECTION.
* dwarf2out.c (DEBUG_FRAME_SECTION): Rename from FRAME_SECTION.
        Update all users.

From-SVN: r42376
2001-05-21 00:03:42 -07:00
Bryce McKinlay
abdbd4a8ec This commit was generated by cvs2svn to compensate for changes in r42373,
which included commits to RCS files with non-trunk default branches.

From-SVN: r42374
2001-05-21 07:39:25 +01:00
Bryce McKinlay
f54d42879f Initial revision
From-SVN: r42370
2001-05-21 07:39:23 +01:00
Richard Henderson
9d2f2c45d8 dwarf2out.c (DEBUG_ABBREV_SECTION, [...]): Rename from s/DEBUG_//.
* dwarf2out.c (DEBUG_ABBREV_SECTION, DEBUG_ARANGES_SECTION,
        DEBUG_MACINFO_SECTION, DEBUG_LOC_SECTION, DEBUG_PUBNAMES_SECTION,
        DEBUG_STR_SECTION): Rename from s/DEBUG_//.  Update all users.
        * dwarfout.c (DEBUG_SFNAMES_SECTION, DEBUG_SRCINFO_SECTION,
        DEBUG_MACINFO_SECTION, DEBUG_PUBNAMES_SECTION, DEBUG_ARANGES_SECTION):
        Likewise.
        * config/mips/iris6.h (DEBUG_SFNAMES_SECTION, DEBUG_SRCINFO_SECTION,
        DEBUG_MACINFO_SECTION, DEBUG_PUBNAMES_SECTION, DEBUG_ARANGES_SECTION,
        DEBUG_FRAME_SECTION, DEBUG_ABBREV_SECTION): Rename as above.
        (DEBUG_LOC_SECTION, DEBUG_STR_SECTION): New.
        * config/ia64/ia64.h (DEBUG_ABBREV_SECTION, DEBUG_ARANGES_SECTION,
        DEBUG_PUBNAMES_SECTION): Rename as above.
        (DEBUG_MACINFO_SECTION, DEBUG_LOC_SECTION, DEBUG_STR_SECTION): New.

From-SVN: r42368
2001-05-20 20:14:31 -07:00
Richard Henderson
4951297b9e New test.
From-SVN: r42367
2001-05-20 18:36:21 -07:00
Richard Henderson
9f4ccc25e3 optabs.c (emit_cmp_and_jump_insns): Don't swap commutative operands unless the operation is commutative.
* optabs.c (emit_cmp_and_jump_insns): Don't swap commutative
        operands unless the operation is commutative.

From-SVN: r42366
2001-05-20 18:33:53 -07:00
Kaveh R. Ghazi
88e3805d76 fold-const.c (tree_expr_nonnegative_p): Detect more non-negative cases.
* fold-const.c (tree_expr_nonnegative_p): Detect more
	non-negative cases.

testsuite:
	* g++.old-deja/g++.warn/compare1.C: New test.
	* gcc.dg/compare4.c: New test.

From-SVN: r42365
2001-05-21 01:21:23 +00:00
Joseph Myers
4b40451753 re PR other/930 (Out of date docs for C99 features as extensions)
* extend.texi: Clarify documentation of extensions included in ISO
	C99.  Prefer C99 terminology and syntax to old GNU terminology and
	syntax.  Add more index entries.  Document mixed declarations and
	code as an extension in C89 mode.  Warn about future changes to
	semantics of inline functions.  Fixes PR other/930.

From-SVN: r42363
2001-05-21 00:21:59 +01:00
Hans Boehm
18d6fb9765 configure.host: Build with -fexceptions.
* configure.host: Build with -fexceptions.
	* linux_threads.c: Remember which thread stopped world for

From-SVN: r42362
2001-05-20 22:36:34 +00:00