Commit Graph

37927 Commits

Author SHA1 Message Date
Janis Johnson
1affb4090d langhooks.c: Include rtl.h, insn-config.h and integrate.h.
* langhooks.c: Include rtl.h, insn-config.h and integrate.h.
* Makefile.in (langhooks.o): Add dependencies.

From-SVN: r46142
2001-10-10 07:02:22 +00:00
John Wehle
b999aaebe7 rs6000.c (rs6000_emit_load_toc_table): Don't strdup the toc label.
* rs6000.c (rs6000_emit_load_toc_table): Don't
	strdup the toc label.
	(create_TOC_reference): Likewise.

From-SVN: r46141
2001-10-10 04:43:56 +00:00
Danny Smith
09eaf5a5ff config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent version default.
* config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
version default.

From-SVN: r46139
2001-10-09 20:27:21 -04:00
Danny Smith
3da1eb0bd6 i386.c (ix86_attribute_table): Correct min_len, max_len fields for dllimport, dllexport and shared.
* config/i386/i386.c (ix86_attribute_table): Correct
min_len, max_len fields for dllimport, dllexport and shared.

From-SVN: r46137
2001-10-09 20:20:11 -04:00
Joseph Myers
0e4e9e8f54 bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
* bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
	* strtod.c: Use "ISO C" instead of "ANSI C".
	* functions.texi: Regenerate.

From-SVN: r46136
2001-10-10 00:33:57 +01:00
Joseph Myers
df2a54e945 c-tree.texi, [...]: Consistently use "nonzero" instead of "non-zero".
* doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
	doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
	Consistently use "nonzero" instead of "non-zero".

From-SVN: r46134
2001-10-10 00:11:55 +01:00
Alexandre Petit-Bianco
3fb5c0ebcf [multiple changes]
2001-10-09  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* parse.y (patch_cast): Call patch_string on the first operand of
	the incoming node, update it if necessary. Fixes java/4510.

2001-10-05  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* parse.y (register_incomplete_type): Set JDEP_SUPER to be given
	a NULL enclosing context if appropriate. Fixes java/4466.

2001-09-17  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* parse.y (patch_method_invocation): Inner class creation context
	check not enforced within constructors. Fixes PR java/1873.

( http://gcc.gnu.org/ml/gcc-patches/2001-10/msg00397.html )

From-SVN: r46133
2001-10-09 15:55:35 -07:00
Per Bothner
d1d8ed9877 strtod.c (_strtod_r): Logic to check for missing digits after exponent had 'else' attached to wrong 'if'.
* strtod.c (_strtod_r):  Logic to check for missing digits
	after exponent had 'else' attached to wrong 'if'.

From-SVN: r46132
2001-10-09 15:54:26 -07:00
Kazu Hirata
19eb1ad779 acconfig.h: Fix comment formatting.
* acconfig.h: Fix comment formatting.
	* c-dump.h: Likewise.
	* c-tree.h: Likewise.
	* conditions.h: Likewise.
	* expr.h: Likewise.
	* function.h: Likewise.
	* gthr.h: Likewise.
	* hwint.h: Likewise.
	* integrate.h: Likewise.
	* intl.h: Likewise.
	* loop.h: Likewise.
	* optabs.h: Likewise.

From-SVN: r46131
2001-10-09 22:40:12 +00:00
Phil Edwards
60741f92b6 howto.html: Tweak markup and value type.
2001-10-09  Phil Edwards  <pme@gcc.gnu.org>

	* docs/html/17_intro/howto.html:  Tweak markup and value type.
	* docs/html/27_io/howto.html:  Tweak markup, describe setbuf() for
	nonzero arguments, add new note on threading.
	* docs/html/faq/index.html:  Update.
	* docs/html/faq/index.txt:  Regenerate.

From-SVN: r46130
2001-10-09 22:23:52 +00:00
Mark Wielaard
481aae6fc2 * java/net/SocketImpl.java: Merge with Classpath
From-SVN: r46129
2001-10-09 21:44:54 +00:00
Phil Edwards
0435269a76 configopts.html: More HTML->XHTML and lowercasing of tags.
2001-10-09  Phil Edwards  <pme@gcc.gnu.org>

	* docs/html/configopts.html:  More HTML->XHTML and lowercasing of tags.
	* docs/html/documentation.html:  Likewise.
	* docs/html/explanations.html:  Likewise.
	* docs/html/install.html:  Likewise.
	* docs/html/17_intro/howto.html:  Likewise.
	* docs/html/17_intro/license.html:  Likewise.  Tighten up language.
	* docs/html/18_support/howto.html:  Likewise.
	* docs/html/19_diagnostics/howto.html:  Likewise.
	* docs/html/20_util/howto.html:  Likewise.
	* docs/html/21_strings/howto.html:  Likewise.
	* docs/html/22_locale/howto.html:  Likewise.
	* docs/html/23_containers/howto.html:  Likewise.
	* docs/html/24_iterators/howto.html:  Likewise.
	* docs/html/25_algorithms/howto.html:  Likewise.
	* docs/html/26_numerics/howto.html:  Likewise.
	* docs/html/27_io/howto.html:  Likewise.
	* docs/html/ext/howto.html:  Likewise.
	* docs/html/ext/sgiexts.html:  Likewise.
	* docs/html/faq/index.html:  Likewise.  Not so many absolute links.
	* docs/html/faq/index.txt:  Regenerate.

From-SVN: r46128
2001-10-09 20:18:14 +00:00
Mark Wielaard
0d47f08629 * java/net/DatagramSocketImpl.java: Merge with Classpath
From-SVN: r46127
2001-10-09 17:40:13 +00:00
Jason Merrill
48c8b0becf fix dates
From-SVN: r46126
2001-10-09 11:55:12 -04:00
Jason Merrill
12eac81ab0 reorganize
From-SVN: r46125
2001-10-09 11:44:25 -04:00
Jason Merrill
7c4577d93a spew.c (end_input): No longer static.
* spew.c (end_input): No longer static.
        * cp-tree.h: Declare it.
        * parse.y (datadef): Add "error END_OF_SAVED_INPUT" expansion.

From-SVN: r46124
2001-10-09 11:44:17 -04:00
Jason Merrill
72a08131a5 call.c (standard_conversion): Add bad conversion between integers and pointers.
* call.c (standard_conversion): Add bad conversion between
        integers and pointers.
        (convert_like_real): Don't use convert_for_initialization for bad
        conversions; complain here and use cp_convert.
        (build_over_call): Don't handle bad conversions specially.
        (perform_implicit_conversion): Allow bad conversions.
        (can_convert_arg_bad): New fn.
        * cp-tree.h: Declare it.
        * typeck.c (convert_for_assignment): Use it.
        (ptr_reasonably_similar): Any target type is similar to void.

From-SVN: r46123
2001-10-09 11:42:44 -04:00
Kazu Hirata
2ba84f36ea c-common.h: Fix comment formatting.
* c-common.h: Fix comment formatting.
	* c-dump.c: Likewise.
	* cfg.c: Likewise.
	* diagnostic.h: Likewise.
	* except.c: Likewise.
	* gcc.h: Likewise.
	* gcov-io.h: Likewise.
	* genattrtab.c: Likewise.
	* output.h: Likewise.
	* predict.h: Likewise.
	* reload1.c: Likewise.
	* reload.h: Likewise.
	* resource.h: Likewise.
	* scan.h: Likewise.
	* system.h: Likewise.
	* tree.h: Likewise.
	* tree-inline.c: Likewise.
	* tsystem.h: Likewise.
	* varasm.c: Likewise.
	* xcoffout.h: Likewise.

From-SVN: r46122
2001-10-09 14:03:13 +00:00
Joseph Myers
77332b4e0b * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
From-SVN: r46119
2001-10-09 12:44:31 +01:00
Joseph Myers
9f2f9eb62b freebsd.h, [...]: Update FSF address.
* config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
	config/i386/i386elf.h, config/i386/netbsd-elf.h,
	config/i386/netware.h, config/mcore/gfloat.h,
	config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
	config/netware.h, gccbug.in: Update FSF address.

ada:
	* 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
	FSF address.

testsuite:
	* consistency.vlad/vlad.exp, g++.old-deja/g++.mike/p784.C,
	g++.old-deja/old-deja.exp, g77.f-torture/compile/compile.exp,
	g77.f-torture/execute/execute.exp,
	g77.f-torture/noncompile/noncompile.exp,
	gcc.c-torture/compile/compile.exp,
	gcc.c-torture/execute/execute.exp,
	gcc.c-torture/execute/ieee/ieee.exp,
	gcc.c-torture/execute/memcheck/memcheck.exp,
	gcc.c-torture/unsorted/unsorted.exp, gcc.misc-tests/linkage.exp,
	objc/execute/execute.exp: Update FSF address.

From-SVN: r46118
2001-10-09 11:16:27 +01:00
GCC Administrator
f35e4d626b Daily bump.
From-SVN: r46116
2001-10-09 07:16:11 +00:00
Neil Booth
24b9d43a64 cmdlne-C.c: Update.
* gcc.dg/cpp/cmdlne-C.c: Update.
	* gcc.dg/cpp/cmdlne-C2.c: New.

From-SVN: r46115
2001-10-09 06:16:25 +00:00
Kazu Hirata
4fe9b91c45 c-common.c: Fix comment typos.
* c-common.c: Fix comment typos.
	* cfgrtl.c: Likewise.
	* collect2.c: Likewise.
	* cpplex.c: Likewise.
	* doloop.c: Likewise.
	* dwarf2out.c: Likewise.
	* dwarfout.c: Likewise.
	* expr.c: Likewise.
	* fold-const.c: Likewise.
	* gcc.c: Likewise.
	* gcov.c: Likewise.
	* gcse.c: Likewise.
	* global.c: Likewise.
	* ifcvt.c: Likewise.
	* loop.c: Likewise.
	* optabs.c: Likewise.
	* protoize.c: Likewise.
	* regclass.c: Likewise.
	* reorg.c: Likewise.
	* rtl.h: Likewise.
	* stmt.c: Likewise.
	* tree.h: Likewise.
	* doc/cpp.texi: Likewise.
	* doc/c-tree.texi: Likewise.
	* doc/extend.texi: Likewise.
	* doc/invoke.texi: Likewise.
	* doc/objc.texi: Likewise.
	* doc/tm.texi: Likewise.

From-SVN: r46114
2001-10-09 06:03:16 +00:00
Bryce McKinlay
908fecca8c parse.y (find_as_inner_class): Don't disregard the enclosing scope when name qualifier matches a package name.
* parse.y (find_as_inner_class): Don't disregard the enclosing scope
        when name qualifier matches a package name.

From-SVN: r46113
2001-10-09 06:40:35 +01:00
John Hornkvist
3c017635c9 Implement Darwin PowerPC ABI.
2001-10-09  John Hornkvist  <john@toastedmarshmallow.com>

        Implement Darwin PowerPC ABI.
        * configure.in: Handle powerpc-*-darwin*.
        * Makefile.am: Set source files for POWERPC_DARWIN.
        * configure: Rebuilt.
        * Makefile.in: Rebuilt.
        * include/ffi.h.in: Define FFI_DARWIN and FFI_DEFAULT_ABI for
        POWERPC_DARWIN.
        * src/powerpc/darwin.S: New file.
        * src/powerpc/ffi_darwin.c: New file.

From-SVN: r46112
2001-10-09 06:32:16 +01:00
Richard Henderson
8d2134aaa8 * varasm.c (set_named_section_flags): Initialize "declared".
From-SVN: r46111
2001-10-08 21:45:18 -07:00
Geert Bosch
8fecf41df2 Makefile.in (treeprs.ads, [...]): Automatically build utilities when files need to be regenerated.
2001-10-08  Geert Bosch  <bosch@gnat.com>

	* Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
	Automatically build utilities when files need to be regenerated.

From-SVN: r46110
2001-10-09 01:46:22 +02:00
Geert Bosch
589f1edf0d * xsnames.adb: New utility for updating snames.ads and snames.adb
From-SVN: r46109
2001-10-09 01:39:37 +02:00
Robert Lipe
a8c01a592b varasm.c (struct in_named_entry): Add declared.
* varasm.c  (struct in_named_entry): Add declared.
	(named_section_first_declaration): New function.
	(default_elf_asm_named_section): Use it.
	* output.h (named_section_first_declaration): New.

From-SVN: r46108
2001-10-08 22:41:55 +00:00
Richard Henderson
646ded90c6 i386.md (movsi_xor): Export.
* i386.md (movsi_xor): Export.
        (setcc peep2): Use it when available; add an alternative to
        match zero_extendhisi2_and.

From-SVN: r46107
2001-10-08 15:38:45 -07:00
Kaveh R. Ghazi
e052f1a966 romp-protos.h (romp_initialize_trampoline): New function.
* romp-protos.h (romp_initialize_trampoline): New function.
	* romp.c (romp_initialize_trampoline): Likewise.
	* romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
	romp_initialize_trampoline.

From-SVN: r46104
2001-10-08 21:55:05 +00:00
Kaveh R. Ghazi
da905677f1 3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
* m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
	* m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
	* m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
	* m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.

From-SVN: r46100
2001-10-08 21:23:52 +00:00
Franz Sirl
9d1e9f93a9 unroll.c (loop_iterations): Extend check for multiple back edges.
2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* unroll.c (loop_iterations): Extend check for multiple back edges.

From-SVN: r46099
2001-10-08 21:20:43 +00:00
Mark Wielaard
0bdf7869bf URLDecoder.java: Remerge with Classpath
* java/net/URLDecoder.java: Remerge with Classpath
	* java/net/URLEncoder.java: Merge with Classpath

From-SVN: r46098
2001-10-08 21:03:34 +00:00
Franz Sirl
63dd08e60d 20011008-3.c: New.
2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* gcc.c-torture/execute/20011008-3.c: New.

From-SVN: r46097
2001-10-08 21:01:03 +00:00
Alexandre Oliva
69dcadffba langhooks.h: New file.
* langhooks.h: New file.
* Makefile.in (OBJS): Added langhooks.o.
(c-lang.o): Depend on langhooks.h.
(c-common.o): Don't depend on tree-inline.h.
(tree-inline.o): Depend on toplev.h.
(langhooks.o): New rule.
* c-common.c: Don't include tree-inline.h.
(c_mark_lang_decl): Mark argument c as unused.
(c_common_lang_init): Don't initialize hooks here.
* c-lang.c: Include langhooks.h, then override some macros.
(lang_hooks): Initialize with macros in langhooks.h.
(c_init): Don't initialize hooks here.
* toplev.c (struct lang_hooks_for_tree_inlining): New struct.
(struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
* tree-inline.c: Include toplev.h.  Don't define hook variables.
* tree-inline.h: Don't define hook types nor declare hook
variables.  Move macros to...
* langhooks.c: ... new file, as functions.  Adjust all callers.

From-SVN: r46096
2001-10-08 20:54:07 +00:00
Alexandre Oliva
19551f2985 Make-lang.in (CXX_OBJS): Added cp-lang.o.
* Make-lang.in (CXX_OBJS): Added cp-lang.o.
(cp/cp-lang.o): New rule.
* cp-tree.h: Declare hooks.
* tree.c: Make hooks non-static.
(init_tree): Don't initialize hooks here.
* lex.c: Likewise.  Move definition of lang_hooks to...
* cp-lang.c: ... new file.

From-SVN: r46095
2001-10-08 20:53:41 +00:00
Alexandre Oliva
4a1186c3c1 * POTFILES.in: Add newly-added files.
From-SVN: r46094
2001-10-08 20:53:26 +00:00
Tom Tromey
d281f2a236 re PR libgcj/4481 (java.io.File.getParent not working properly)
Fix for PR libgcj/4481:
	* java/io/File.java (getParent): Handle case where path is "/".
	(normalizePath): Use correct string for UNC leader.

From-SVN: r46093
2001-10-08 20:42:13 +00:00
Tom Tromey
f3ca28bffb re PR java/4489 (bytecode generation endless loop with certain switch() exprs)
Fix for PR java/4489:
	* jcf-write.c (generate_bytecode_insns) [SWITCH_EXPR]: Always
	force a new label when computing `body_block'.

From-SVN: r46092
2001-10-08 20:35:03 +00:00
Jeffrey A Law
5a2ce672ba sibcall.c (optimize_sibling_and_tail_recursive_calls): Call purge_mem_unchanging_flag on all instructions...
* sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
	purge_mem_unchanging_flag on all instructions, not just on those
	before NOTE_INSN_FUNCTION_BEG.

From-SVN: r46091
2001-10-08 20:24:55 +00:00
Neil Booth
bbb12d768b cppmacro.c (_cpp_create_definition): Leave comments off.
* cppmacro.c (_cpp_create_definition): Leave comments off.

	* doc/cpp.texi: Update.

From-SVN: r46089
2001-10-08 20:05:36 +00:00
DJ Delorie
3e96a2fd0c c-decl.c (grokfield): Make sure the only unnamed fields we're allowing are either structs or unions.
* c-decl.c (grokfield): Make sure the only unnamed fields
we're allowing are either structs or unions.
* doc/extend.texi: Add documentation for the unnamed field
extension.

From-SVN: r46088
2001-10-08 15:44:53 -04:00
DJ Delorie
1dde5a4edc 20011008-1.c: New.
* gcc.dg/20011008-1.c: New.
* gcc.dg/20011008-2.c: New.

From-SVN: r46087
2001-10-08 15:42:40 -04:00
Mark Wielaard
11064ef947 * java/io/BufferedInputStream.java: Merge with Classpath
From-SVN: r46086
2001-10-08 18:53:49 +00:00
Zack Weinberg
67f28219a6 aclocal.m4 (gcc_AC_PROG_GNAT): New.
top:
	* aclocal.m4 (gcc_AC_PROG_GNAT): New.
	* configure.in: Use it.
	* configure: Regenerated.
	* config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
	config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
ada:
	* Make-lang.in (ADAFLAGS): Add -W -Wall.
	(ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
	(gnat1): Also depend on attribs.o.
	(gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
	* Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
	(ADAC): Set to @ADAC@ in stage1, $(CC) later.
	(ADAFLAGS): Add -W -Wall.
	(ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
	take out CFLAGS.

	(.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
	s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
	s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
	Use $(ADAC), not $(CC), as compilation command.

	(gnattools): Depend directly on tools to build, don't use
	recursive make.
	(gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.

	* einfo.h, sinfo.h: New files (autogenerated).

From-SVN: r46085
2001-10-08 17:58:31 +00:00
Neil Booth
c0bfe99333 cppfiles.c (open_file): Don't mark zero-length files never-reread here.
* cppfiles.c (open_file): Don't mark zero-length files
	never-reread here.  Don't output diagnostics here either.
	(stack_include_file): Mark them never-reread here.
	(_cpp_read_file): Update.

From-SVN: r46084
2001-10-08 17:54:15 +00:00
Richard Henderson
d5d1b9e2d1 * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
From-SVN: r46083
2001-10-08 10:39:53 -07:00
Richard Henderson
295ef2bba9 comperr.adb (Abort_In_Progress): New.
* comperr.adb (Abort_In_Progress): New.
        (Compiler_Abort): Use it to prevent recursion.

From-SVN: r46082
2001-10-08 10:09:23 -07:00
Richard Henderson
1f1b054115 expr.c (store_expr): When converting a CONST_INT for storage in a SUBREG...
* expr.c (store_expr): When converting a CONST_INT for storage
        in a SUBREG, convert it to both SUBREG modes before stripping
        the SUBREG.

From-SVN: r46081
2001-10-08 09:54:45 -07:00