Commit Graph

31788 Commits

Author SHA1 Message Date
Jakub Jelinek
462ef1e150 * gcc.dg/20001117-1.c: New test.
From-SVN: r37584
2000-11-20 16:22:40 +01:00
William Cohen
8d50dfb831 Correction so -fchech-memory-usage only flushes hard registers to temp memory location.
Correction so -fchech-memory-usage only flushes hard registers to temp
memory location.  Values in psuedo registers and memory shouldn't be
affected.

From-SVN: r37583
2000-11-20 14:23:42 +00:00
Bernd Schmidt
bd6758592b Fix sh problems at -O0
From-SVN: r37582
2000-11-20 14:17:59 +00:00
Jeff Law
badc2279d9 Daily bump.
From-SVN: r37581
2000-11-20 01:45:12 -07:00
Joseph Myers
78d58962af c++config, [...]: Correct spelling of "deprecated".
* include/bits/c++config, include/bits/ios_base.h,
	include/bits/std_streambuf.h: Correct spelling of "deprecated".

From-SVN: r37580
2000-11-20 08:25:18 +00:00
Richard Henderson
52403abb36 * crtstuff.c (force_to_data): Use array size 1 not 0.
From-SVN: r37579
2000-11-19 17:48:49 -08:00
Richard Henderson
3df188844e dwarf2out.c (simple_type_size_in_bits): Handle a type with no computed size as size zero.
* dwarf2out.c (simple_type_size_in_bits): Handle a type with
        no computed size as size zero.
        (field_byte_offset): Likewise.

From-SVN: r37578
2000-11-19 17:25:59 -08:00
Joseph Myers
cfd1c7ea39 * config.gcc: Fix another typo.
From-SVN: r37577
2000-11-20 00:58:02 +00:00
Richard Henderson
a25f12118f c-decl.c (grokdeclarator): Support flexible array members.
* c-decl.c (grokdeclarator): Support flexible array members.
        Use open-ended ranges for these and zero-length arrays.
        * c-typeck.c (push_init_level): Validate the context of
        initialization of a zero-length array.
        * tree.c (int_fits_type_p): Be prepared for missing bounds.
        * varasm.c (array_size_for_constructor): New.
        (output_constructor): Use it for arrays of unspecified length.
        * extend.texi (Zero Length): Mention C99 flexible array members.
        Document initialization in a top-level struct as valid.

From-SVN: r37576
2000-11-19 15:40:37 -08:00
Mark Mitchell
2650255a57 decl.c (init_decl_processing): Correct name of pure virtual function under the new ABI.
* decl.c (init_decl_processing): Correct name of pure virtual
	function under the new ABI.
	* rtti.c (throw_bad_cast): Likewise, for bad cast function.
	(throw_bad_typeid): Likewise for bad typeid function.

	* libsupc++/exception_support.cc (__throw_bad_cast): Name it
	__cxa_bad_cast under the new ABI.
	(__throw_bad_typeid): Name it __cxa_bad_typeid under the new ABI.
	* libsupc++/pure.cc (__pure_virtual): Name it __cxa_pure_virtual
	under the new ABI.

From-SVN: r37575
2000-11-19 21:07:24 +00:00
Jason Merrill
b7ac5370c2 tweak
From-SVN: r37574
2000-11-19 14:59:18 -05:00
Joseph Myers
9e8fc4b8ef * config.gcc, invoke.texi: Fix errors in spelling of "deprecated".
From-SVN: r37573
2000-11-19 19:42:33 +00:00
Joseph Myers
65fa218589 alias.c (mems_in_disjoint_alias_sets_p): Do use alias sets in stdarg and varargs functions.
* alias.c (mems_in_disjoint_alias_sets_p): Do use alias sets in
	stdarg and varargs functions.

From-SVN: r37572
2000-11-19 19:39:17 +00:00
Zack Weinberg
2e59adac88 gcc.c (process_command): Define 'j' variable when MODIFY_TARGET_NAME is defined.
* gcc.c (process_command): Define 'j' variable when
	MODIFY_TARGET_NAME is defined.

From-SVN: r37571
2000-11-19 19:30:13 +00:00
Richard Henderson
856442b6f3 * stor-layout.c (variable_size): Only put SAVE_EXPRs on pending_sizes.
From-SVN: r37570
2000-11-19 11:09:35 -08:00
Zack Weinberg
3d6f4d76bc texi2pod.pl: - Add real command line parsing.
* texi2pod.pl:
	  - Add real command line parsing.
	  - Support @ifset, @ifclear, @set, @value, -D switch.
	  - Support @sc.  Improve handling of @ref and friends.
	  - Discard @subsection, @need, @node lines.
	  - Un-nest font changes to match texinfo semantics.
	  - Handle @{ and @}.  Oops.
	  - Don't emit E<> directives inside verbatim blocks.

From-SVN: r37569
2000-11-19 19:02:50 +00:00
Matthias Klose
564b42a144 g77.texi (Floating-point precision): Adjust example to work with glibc (>= 2.1).
Sun Nov 19 17:29:22 2000  Matthias Klose  <doko@marvin.itso-berlin.de>

        * g77.texi (Floating-point precision): Adjust example
        to work with glibc (>= 2.1).

From-SVN: r37568
2000-11-19 18:57:05 +00:00
Franz Sirl
88c1e412e8 rs6000.c (rs6000_encode_section_info): Fix string length calculation and allocation.
2000-11-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* rs6000/rs6000.c (rs6000_encode_section_info): Fix string length
	calculation and allocation.

From-SVN: r37567
2000-11-19 18:49:32 +00:00
Matthias Klose
e868d863de g77.texi (Floating-point Exception Handling): Adjust example to work with glibc (>= 2.1).
Sat Nov 18 13:54:49 2000  Matthias Klose  <doko@cs.tu-berlin.de>

	* g77.texi (Floating-point Exception Handling): Adjust
	example to work with glibc (>= 2.1).

From-SVN: r37566
2000-11-19 16:19:17 +00:00
Kaveh R. Ghazi
ce1cc601f5 Warning fixes:
* builtins.c (c_getstr): Constify variable.
	* gmon-sol2.c (_mcleanup): Comment out #endif labels.
	* conflict.c (const_conflict_graph_arc): New typedef.
	(arc_hash, arc_eq): Avoid needlessly casting away const-ness.
	* cppmacro.c (builtin_macro): Likewise.
	* dwarf2out.c (output_comp_unit): Constify variable.
	* fix-header.c (v_fatal): Add ATTRIBUTE_PRINTF.
	* protoize.c (IS_SAME_PATH_CHAR): Use TOUPPER, not toupper.
	* ssa.c (ssa_rename_from_hash_function): Avoid needlessly casting
	away const-ness.
	* tradcpp.c (rescan, do_line, macroexpand, macarg): Use
	ISALNUM/ISDIGIT/ISPRINT, not isalnum/isdigit/isprint.
	* varasm.c (const_str_htab_hash, const_str_htab_eq,
	compare_constant_1, record_constant_1): Constify.

From-SVN: r37565
2000-11-19 13:15:51 +00:00
Kaveh R. Ghazi
7e9355c669 java-tree.h (cyclic_inheritance_report): Constify.
* java-tree.h (cyclic_inheritance_report): Constify.
	* parse.y (cyclic_inheritance_report): Likewise.

From-SVN: r37564
2000-11-19 12:56:21 +00:00
Kaveh R. Ghazi
8bcc782ce9 cplus-dem.c (grow_vect): Prototype.
* cplus-dem.c (grow_vect): Prototype.
	(ada_demangle): Cast the arg of ctype macros to unsigned char.

From-SVN: r37563
2000-11-19 12:46:33 +00:00
Richard Henderson
980c0b564e * gcc.c-torture/execute/nestfunc-3.c (main): Mask result to 32 bits.
From-SVN: r37562
2000-11-19 01:41:33 -08:00
Richard Henderson
dd4458df4e c-torture.exp (TORTURE_OPTIONS): Remove -fssa.
* lib/c-torture.exp (TORTURE_OPTIONS): Remove -fssa.
        * lib/f-torture.exp (TORTURE_OPTIONS): Likewise.
        * lib/gcc-dg.exp (TORTURE_OPTIONS): Likewise.

From-SVN: r37561
2000-11-19 01:35:54 -08:00
Richard Henderson
2add28a33a 20001009-2.c (foo): Rename from main.
* gcc.c-torture/execute/20001009-2.c (foo): Rename from main.
        (main): New.  Exit cleanly.

From-SVN: r37560
2000-11-19 01:33:30 -08:00
Jeff Law
0da8bbae9d Daily bump.
From-SVN: r37559
2000-11-19 01:45:10 -07:00
Richard Henderson
967e627adc c-decl.c (grokdeclarator): Special case the creation of an index for a zero-length array.
* c-decl.c (grokdeclarator): Special case the creation of an
        index for a zero-length array.
        * tree.c (build_index_type): Revert Oct 20 change.

From-SVN: r37558
2000-11-19 00:36:18 -08:00
Marek Michalkiewicz
e9284adfd0 avr-protos.h (avr_output_addr_vec_elt): Prototype.
* config/avr/avr-protos.h (avr_output_addr_vec_elt): Prototype.
	* config/avr/avr.c (jump_tables_size): New variable.
	(function_prologue): Initialize it as 0.
	(function_epilogue): Add it to function_size.
	(avr_output_addr_vec_elt): New function.  Count words in jump
	tables in jump_tables_size.  Move code ...
	* config/avr/avr.h (ASM_OUTPUT_ADDR_VEC_ELT): ... from here.
	Call avr_output_addr_vec_elt instead.
	* config/avr/avr.md (tablejump): Remove disabled define_expand.

From-SVN: r37557
2000-11-19 10:10:54 +03:00
Mark Mitchell
67c72a6308 configure.in: Make --enable-new-gxx-abi the default.
* configure.in: Make --enable-new-gxx-abi the default.
	* configure: Likewise.

From-SVN: r37556
2000-11-19 05:00:10 +00:00
Mark Mitchell
04f3dc2b03 decl.c (grokparms): Don't even function types of `void' type, either.
* decl.c (grokparms): Don't even function types of `void' type,
	either.
	* mangle.c (write_type): Don't crash when confronted with the
	error_mark_node.

From-SVN: r37555
2000-11-19 04:56:45 +00:00
Mark Mitchell
b35431cf07 exception_support.h: New header file.
* libsupc++/exception_support.h: New header file.
	* libsupc++/vec.cc: Include it.
	(__cxa_vec_new2): Recatch exceptions before rethrows.
	(__cxa_vec_new3): Likewise.
	(__cxa_vec_ctor): Likewise.
	(__cxa_vec_cctor): Likewise.
	(__cxa_vec_dtor): Likewise.
	(__cxa_vec_delete2): Likewise.
	(__cxa_vec_delete3): Likewise.

From-SVN: r37554
2000-11-19 04:53:38 +00:00
Mark Mitchell
0657c69c32 * decl.c (grokparms): Don't create parameters of `void' type.
From-SVN: r37553
2000-11-19 02:34:29 +00:00
Mark Mitchell
7f0614d816 Remove test
From-SVN: r37552
2000-11-19 02:25:03 +00:00
Mark Mitchell
f1f0c5a2f7 exception_support.h: New header file.
* libsupc++/exception_support.h: New header file.
	* libsupc++/vec.cc: Include it.
	(__cxa_vec_new2): Recatch exceptions before rethrows.
	(__cxa_vec_new3): Likewise.
	(__cxa_vec_ctor): Likewise.
	(__cxa_vec_cctor): Likewise.
	(__cxa_vec_dtor): Likewise.
	(__cxa_vec_delete2): Likewise.
	(__cxa_vec_delete3): Likewise.

From-SVN: r37551
2000-11-19 02:22:53 +00:00
Kaveh R. Ghazi
0a8ad41790 Makefile.in (tradcpp.o, tradcif.o): Depend on tradcpp.h.
* Makefile.in (tradcpp.o, tradcif.o): Depend on tradcpp.h.

	* tradcif.y: Include tradcpp.h.  Constify.  Make functions static.
	Move extern function declarations to tradcpp.h.

	* tradcpp.c: Likewise.

	* tradcpp.h: New file.

From-SVN: r37550
2000-11-19 00:30:05 +00:00
Joseph Myers
77c4d6c06a c-decl.c (check_for_loop_decls): New function.
* c-decl.c (check_for_loop_decls): New function.
	* c-parse.in (for_init_stmt): New.
	(select_or_iter_stmt): Use for_init_stmt.
	* c-tree.h (check_for_loop_decls): New declaration.

testsuite:
	* gcc.dg/c90-fordecl-1.c, gcc.dg/c99-fordecl-1.c,
	gcc.dg/c99-fordecl-2.c: New tests.

From-SVN: r37549
2000-11-18 23:18:36 +00:00
Richard Henderson
ce7d4fc8dd zerolen-1.c: Rename from 20001115-1.c.
* gcc.c-torture/execute/zerolen-1.c: Rename from 20001115-1.c.
        * gcc.c-torture/execute/zerolen-2.c: New.

From-SVN: r37548
2000-11-18 14:35:36 -08:00
Alexandre Oliva
e601f9e9d8 Adjust copyright years, based on other copies of the file
From-SVN: r37547
2000-11-18 22:06:40 +00:00
Alexandre Oliva
6e2a48434d Makefile.in: Merge with src and libgcj.
* Makefile.in: Merge with src and libgcj.
(ALL_GCC_C, ALL_GCC_CXX): New macros.  Use them as dependencies of
configure-target-<library> when their configure scripts need the C
or C++ library to have already been built to work properly.
(do_proto_toplev): Set them to an empty string.

From-SVN: r37546
2000-11-18 21:57:54 +00:00
Alexandre Oliva
ce8e06b1dc Makefile.in (HOST_LIB_PATH, [...]): New macros.
* Makefile.in (HOST_LIB_PATH, TARGET_LIB_PATH): New macros.
(REALLY_SET_LIB_PATH): Use them.

From-SVN: r37545
2000-11-18 20:55:40 +00:00
Franz Sirl
3734169e0c 20001115-1.c: Don't write to nonexistant memory.
* gcc.c-torture/execute/20001115-1.c: Don't write to nonexistant
        memory.

From-SVN: r37544
2000-11-18 10:46:15 -08:00
Alexandre Oliva
311d8afa84 Make-lang.in (INTDOC_DEPS): New macro.
* Make-lang.in (INTDOC_DEPS): New macro.
(f/intdoc.texi): Depend on $(INTDOC_DEPS).  Build f/intdoc.
(f/intdoc): Likewise.  Add $(build_exeext).

From-SVN: r37543
2000-11-18 15:55:38 +00:00
Neil Booth
4a58aab6a7 cppinit.c: Update comments.
* cppinit.c: Update comments.
	(cpp_reader_init): Make -imacro and -include use the standard
	#include "" search path.
	(do_includes): New function.

From-SVN: r37542
2000-11-18 12:18:09 +00:00
Jeff Law
18c07aaf6d Daily bump.
From-SVN: r37541
2000-11-18 01:45:11 -07:00
Tom Tromey
f967de33d7 AccessibleObject.java (isAccessible, [...]): Now public.
* java/lang/reflect/AccessibleObject.java (isAccessible,
	setAccessible): Now public.

From-SVN: r37540
2000-11-18 02:30:29 +00:00
Tom Tromey
9839499072 natString.cc: Include Locale.h.
* java/lang/natString.cc: Include Locale.h.
	(toUpperCase): Added `locale' argument.  Handle locale
	sensitivity.
	(toLowerCase): Added `locale' argument.  Handle locale
	sensitivity.
	(ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
	CAPITAL_I): New defines.
	* java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
	final.
	Import Locale.
	(toUpperCase, toLowerCase): New methods.  Variants which accept
	locale now native.

	* java/lang/ExceptionInInitializerError.java (printStackTrace):
	New methods.

	* java/util/PropertyPermission.java: Re-merged from Classpath.

	* java/text/RuleBasedCollator.java (getCollationElementIterator):
	New method.
	* java/text/StringCharacterIterator.java: Reindented.
	(setText): New method.

From-SVN: r37539
2000-11-18 02:29:13 +00:00
Mark Wielaard
c5f651bf3f backport: *.java: Reformat all to unofficial standard coding style.
Merge with Classpath (changes by Bryce McKinlay)
	* java/util/jar/*.java: Reformat all to unofficial standard coding
	style. No changes of substance.

From-SVN: r37538
2000-11-18 02:00:06 +00:00
Stan Shebs
c003f37865 * MAINTAINERS: Add self to Write After Approval list.
From-SVN: r37537
2000-11-18 00:44:19 +00:00
Ben Elliston
c3e2d242ce crt1.asm (start_l): Move PC-relative move instruction out of a branch delay slot.
2000-11-18  Ben Elliston  <bje@redhat.com>

	* config/sh/crt1.asm (start_l): Move PC-relative move instruction
	out of a branch delay slot.

From-SVN: r37536
2000-11-18 11:07:16 +11:00
Richard Henderson
48adb36e99 elf.h (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
* config/alpha/elf.h (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
        (ASM_SPEC): Disable and enable .mdebug based on -gstabs.
        (ASM_FILE_START): Only write out ecoff .file directive if
        emitting mdebug debugging.

From-SVN: r37535
2000-11-17 16:02:26 -08:00