Commit Graph

43385 Commits

Author SHA1 Message Date
DJ Delorie
917ccc05a6 hashtab.h (htab): Rearrange new members for backward compatibility.
* hashtab.h (htab): Rearrange new members for backward
compatibility.
(htab_create): Don't use a macro that requires other headers.

From-SVN: r54316
2002-06-06 08:42:06 -04:00
Nicola Pero
0c7aeb8801 Fixed regression in the ObjC compiler which was failing on simple C code
due to missing language hooks

From-SVN: r54315
2002-06-06 09:27:22 +00:00
Nicola Pero
4b65dba166 Define some laguage hooks which were missing - LANG_HOOKS_GET_ALIAS_SET
and LANG_HOOKS_SAFE_FROM_P

From-SVN: r54314
2002-06-06 09:25:48 +00:00
Loren J. Rittle
32e7bd5b88 Update last commit.
From-SVN: r54311
2002-06-06 07:43:09 +00:00
Loren J. Rittle
8b5fd4691d Makefile.am (AUTOMAKE_OPTIONS): Use cygnus-style generation.
* src/Makefile.am (AUTOMAKE_OPTIONS): Use cygnus-style generation.
	* include/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
	* testsuite/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
	* src/Makefile.in: Regenerate (explicitly with --cygnus option).
	* testsuite/Makefile.in: Likewise.

From-SVN: r54310
2002-06-06 07:32:57 +00:00
GCC Administrator
fcde6cbfe2 Daily bump.
From-SVN: r54309
2002-06-06 07:21:30 +00:00
John David Anglin
2a496e8b74 emit-rtl.c (get_first_nonnote_insn, [...]): New functions.
* emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
	functions.
	* rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
	* avr/avr.c (avr_output_function_epilogue): Use above to determine
	function size.
	* pa/pa.c (pa_output_function_prologue): Likewise.

From-SVN: r54304
2002-06-06 06:37:37 +00:00
David S. Miller
2ff581c3af integrate.c (subst_constants): Handle 'B' RTL format.
2002-06-05  David S. Miller  <davem@redhat.com>

	* integrate.c (subst_constants): Handle 'B' RTL format.

From-SVN: r54302
2002-06-05 21:13:45 -07:00
Geoffrey Keating
045b3a49ca Index: include/ChangeLog
Index: include/ChangeLog
	* hashtab.h (htab_create): Restore prototype for backward
	compatibility.
	(htab_try_create): Likewise.

Index: libiberty/ChangeLog
	* hashtab.c (htab_create): New stub function for backward
	compatibility.
	(htab_try_create): Likewise.

From-SVN: r54300
2002-06-06 03:23:27 +00:00
Gabriel Dos Reis
3cb8660c64 * error.c (cp_error_at): Fix typo.
From-SVN: r54299
2002-06-06 03:20:10 +00:00
Eric Christopher
b2e2d0cc3a varasm.c (make_decl_rtl): Fix comment for removed halfpic.c.
2002-06-05  Eric Christopher  <echristo@redhat.com>

	* varasm.c (make_decl_rtl): Fix comment for removed
	halfpic.c.

From-SVN: r54298
2002-06-06 03:05:37 +00:00
Eric Christopher
0f81faf652 Makefile.in: Remove missed halfpic bits.
2002-06-05  Eric Christopher  <echristo@redhat.com>

	* Makefile.in: Remove missed halfpic bits.

From-SVN: r54297
2002-06-06 01:51:15 +00:00
Eric Christopher
3300516226 toplev.c: Remove half-pic.
2002-06-05  Eric Christopher  <echristo@redhat.com>

	* toplev.c: Remove half-pic.
	* config/mips/mips.c: Ditto.
	* config/mips/mips.h: Ditto. Remove unused defines.
	* config/mips/openbsd.h: Update comment to reflect above.
	* config/mips/mips.md: Remove half-pic constraints.
	* halfpic.h: Delete.
	* halfpic.c: Ditto.

From-SVN: r54296
2002-06-06 01:25:16 +00:00
H.J. Lu
5d3dfc3ac1 Makefile.am (libgcj_convenience.la): Revert the last change.
2002-06-05  H.J. Lu  (hjl@gnu.org)

	* Makefile.am (libgcj_convenience.la): Revert the last change.
	(libgcj.la): Likewise.
	* Makefile.in: Regenerated.

From-SVN: r54295
2002-06-05 15:15:05 -07:00
Jeff Law
8008102813 pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it rejects (mem (lo_sum (reg) (unspec)))...
* pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
        rejects (mem (lo_sum (reg) (unspec))), but will allow
        (mem (lo_sum (reg) (symbol_ref)) for PA2.0.

From-SVN: r54294
2002-06-05 14:35:23 -06:00
Neil Booth
cbc69f844e cpphash.h (_cpp_create_definition): Update prototype.
* cpphash.h (_cpp_create_definition): Update prototype.
	(_cpp_push_text_context, _cpp_create_trad_definition): New.
	( cpp_lex_identifier_trad): New.
	(_cpp_set_trad_context): New.
	* cppinit.c (cpp_finish_options): Don't conditionalize builtins.
	* cpplib.c (SEEN_EOL): Update.
	(lex_macro_node): Update for -traditional.
	(cpp_push_buffer, _cpp_pop_buffer): Similarly.
	* cppmacro.c (_cpp_create_definition): Split into
	create_iso_definition() and _cpp_create_trad_definition().
	(warn_of_redefinition): Update prototype; handle traditional
	macros.
	(_cpp_push_text_context): New.
	* cpptrad.c (skip_whitespace, push_replacement_text): New.
	(lex_identifier): Call ht_lookup with correct start.
	(_cpp_lex_identifier_tradm _cpp_create_trad_definition,
	_cpp_set_trad_context): New.
	(scan_out_logical_line): Update to handle changing contexts.

From-SVN: r54293
2002-06-05 20:27:12 +00:00
J"orn Rennecke
dbf87f32ae config.gcc (sh-*-elf*, [...]): Unify.
gcc:
	* config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
	(shl*-*-elf*): Add.
	* config/sh/t-be (MULTILIB_ENDIAN): Set.
	* config/sh/t-le (MULTILIB_ENDIAN): Likewise.
	* t-sh (MULTILIB_ENDIAN): Set.
	(MULTILIB_OPTIONS): Use it.
	* t-sh64 (MULTILIB_OPTIONS): Likewise.
	(MULTILIB_DIRNAMES): Likewise.
bfd:
	* config.bfd (sh64l*-*-elf*, shl*-*-elf*): New configurations.
ld:
	configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.

From-SVN: r54292
2002-06-05 20:52:07 +01:00
Gabriel Dos Reis
47b69537e4 toplev.h (report_error_function): Remove.
* toplev.h (report_error_function): Remove.

	* diagnostic.h (location_t): New datatype.
	(text_info): Likewise.
	(diagnostic_info): Likewise.
	(output_prefix): New macro.
	(diagnostic_last_function_changed): Likewise.
	(diagnostic_set_last_function): Likewise.
	(diagnostic_last_module_changed): Likewise.
	(diagnostic_set_last_module): Likewise.
	(report_diagnostic): Now macro.
	(diagnostic_set_info): Declare.

	* diagnostic.c (report_problematic_module): Rename to
	diagnostic_repor_current_module.
	(set_diagnostic_context): Remove.
	(count_error): Rename to diagnostic_error_count.
	(error_function_changed): Remove.
	(record_last_error_function): Likewise.
	(error_module_changed): Likewise.
	(record_last_error_module): Likewise.
	(context_as_prefix): Rename to diagnostic_build_prefix.
	(flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
	(diagnostic_set_info): New function.

	* objc/objc-act.c: #include diagnostic.h
	(error_with_ivar): Adjust call to count_error.
	(warn_with_method): Likewise.
	* objc/Make-lang.in (objc-act.o): Depend on diagnostic.h

cp/
2002-06-04  Gabriel Dos Reis  <gdr@codesourcery.com>

	* error.c (cp_diagnostic_starter): Adjust call.
	(maybe_print_instantiation_context): Change prototype to take a
	'diagnostic_info *'.
	(print_instantiation_full_context): Likewise.
	(print_instantiation_partial_context): Likewise.
	(cp_diagnostic_starter): Likewise.
	(cp_diagnostic_finalizer): Likewise.
	(cp_print_error_function): Likewise.
	(cp_printer): Take a secondary parameter as a 'text_info *'.
	Remove output_state savings.  Adjust calls.

f/
2002-06-04  Gabriel Dos Reis  <gdr@codesourcery.com>

	* bad.c (ffebad_start_): Adjust call to count_error.
	* Make-lang.in (f/bad.o): Depend on diagnostic.h
	* bad.c: #include diagnostic.h

From-SVN: r54291
2002-06-05 19:35:45 +00:00
Kaveh R. Ghazi
304a3a85de f2cext.c (alarm_): Mark parameter(s) with attribute `unused'.
* f2cext.c (alarm_): Mark parameter(s) with attribute `unused'.
	* libF77/h_len.c (h_len): Likewise.
	* libF77/i_len.c (i_len): Likewise.
	* libI77/rsli.c (i_ungetc): Likewise.
	* libU77/date_.c (G77_date_y2kbuggy_0): Likewise.
	* libU77/fputc_.c (G77_fputc_0): Likewise.
	* libU77/vxtidate_.c (G77_vxtidate_y2kbuggy_0): Likewise.
	* libU77/vxttime_.c (G77_vxttime_0): Likewise.

From-SVN: r54289
2002-06-05 19:07:11 +00:00
Bob Wilson
540eaea825 xtensa.c (xtensa_build_va_list): Use lang_hooks.types.make_type instead of make_node; set up __va_list_tag type decl.
* config/xtensa/xtensa.c (xtensa_build_va_list): Use
        lang_hooks.types.make_type instead of make_node; set up
        __va_list_tag type decl.
        (xtensa_builtin_saveregs): Remove broken use of
        RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
        for saved registers; add varargs alias set.

From-SVN: r54288
2002-06-05 18:55:19 +00:00
Neil Booth
d89e380b10 *** empty log message ***
From-SVN: r54287
2002-06-05 18:33:25 +00:00
Neil Booth
f23a084df7 gnu.h: Undef TARGET_OS_CPP_BUILTINS.
config:
	* alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
	* i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
	CPP_PREDEFINES and part of CPP_SPEC.
	i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
	i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.

From-SVN: r54286
2002-06-05 17:01:31 +00:00
David Edelsohn
b80ee165bd ctype_noninline.h (do_toupper,do_tolower): Call external symbol.
* config/os/aix/bits/ctype_noninline.h (do_toupper,do_tolower):
        Call external symbol.

From-SVN: r54284
2002-06-05 10:51:59 -04:00
Jan Hubicka
3fe3a596d4 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
From-SVN: r54282
2002-06-05 13:23:16 +00:00
GCC Administrator
c30bb47bd7 Daily bump.
From-SVN: r54278
2002-06-05 07:25:55 +00:00
Alan Modra
1fd9ba59da * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
From-SVN: r54272
2002-06-05 13:26:27 +09:30
H.J. Lu
77d2dd29ad Use ## for comment.
From-SVN: r54271
2002-06-04 17:19:30 -07:00
Zack Weinberg
cea554e049 * gengtype-yacc.y: Make sure all rules end with a semicolon.
From-SVN: r54270
2002-06-05 00:08:00 +00:00
Bob Wilson
072326388a xtensa.c (xtensa_init_machine_status): Fix typo in function prototype and include "ggc.h" header.
* config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
        typo in function prototype and include "ggc.h" header.

From-SVN: r54269
2002-06-04 23:41:42 +00:00
H.J. Lu
622dc71b65 Makefile.am (libgcj_convenience.la): New target.
2002-06-04  H.J. Lu  (hjl@gnu.org)

	* Makefile.am (libgcj_convenience.la): New target.
	(libgcj.la): Depend on libgcj_convenience.la.
	* Makefile.in: Regenerated.

From-SVN: r54268
2002-06-04 15:52:52 -07:00
Richard Henderson
c4b50f1a48 alpha.c (mode_mask_operand): Simplify without ifdefs.
* config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
        (print_operand) ['U']: Likewise.
        (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
        (alpha_expand_unaligned_store_words): Likewise.
        (alpha_expand_builtin_vector_binop): Fix typo.
        (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
        umulh, and cix insns.
        (one_arg_builtins): Add cix builtins.
        (two_arg_builtins): Add ext, ins, msk, umulh builtins.
        (alpha_expand_builtin): Fix typo in arity.
        * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
        (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
        builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
        builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
        builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
        builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
        builtin_ctlz, builtin_ctpop): New.
        * doc/extend.texi (Alpha Built-in Functions): Update.

        * gcc.dg/alpha-base-1.c: Add ext/ins/msk/umulh cases.
        * gcc.dg/alpha-max-1.c, gcc.dg/alpha-max-2.c: Use -mcpu=ev67.
        * gcc.dg/alpha-cix-1.c, gcc.dg/alpha-cix-2.c: New.

From-SVN: r54267
2002-06-04 15:46:00 -07:00
Geoffrey Keating
afb0f770f4 gengtype.c (write_gc_root): Don't unnecessarily prevent global variable-length arrays being roots.
* gengtype.c (write_gc_root): Don't unnecessarily prevent
	global variable-length arrays being roots.

From-SVN: r54266
2002-06-04 22:25:29 +00:00
Geoffrey Keating
aaab35ae40 config.gcc (powerpc-*-darwin*): Set config_gtfiles.
* config.gcc (powerpc-*-darwin*): Set config_gtfiles.
	* configure.in (config_gtfiles): New variable.
	(all_gtfiles): Initialise from config_gtfiles.
	* configure: Regenerate.

From-SVN: r54265
2002-06-04 22:20:43 +00:00
Tom Tromey
f06cafdf4b * jcf-write.c (perform_relocations): Optmize a goto to a goto.
From-SVN: r54264
2002-06-04 22:09:43 +00:00
Michael Koch
0bb5f0e400 gcj.texi (Input Options): Fixed typo.
2002-06-04  Michael Koch  <konqueror@gmx.de>

	* gcj.texi (Input Options): Fixed typo.

From-SVN: r54263
2002-06-04 22:00:42 +00:00
H.J. Lu
9e7823ccbe configure.in (--with-newlib): New option: Check ${with_newlib} instead of ${with_cross_host} for newlib.
2002-06-04  H.J. Lu  (hjl@gnu.org)

	* configure.in (--with-newlib): New option:
	Check ${with_newlib} instead of ${with_cross_host} for newlib.
	(HAVE_PROC_SELF_EXE): Defined to 1 only for cross compiling to
	Linux.
	* configure: Regenerated.

From-SVN: r54262
2002-06-04 14:01:44 -07:00
Zack Weinberg
c02ebb1834 java-tree.h, [...]: Remove all #if JAVA_USE_HANDLES blocks...
* java-tree.h, class.c, expr.c, jcf-parse.c, parse.y,
	typeck.c, verify.c: Remove all #if JAVA_USE_HANDLES blocks,
	all mention of CLASS_TO_HANDLE_TYPE or HANDLE_TO_CLASS_TYPE,
	and all now-pointless local variables.  Rename other local
	variables to reflect their not being handles.

	* java-tree.h, jcf-dump.c, jcf-io.c: Remove all
	#if JCF_USE_STDIO blocks.

	* parse.y: Add missing semicolon at end of rule.

From-SVN: r54261
2002-06-04 20:32:08 +00:00
Tom Tromey
d6ee617dd7 re PR libgcj/6389 (System.getProperty("") should always throw an IllegalArgumentException)
* libjava.compile/T20020604.java: New file.

	For PR libgcj/6389:
	* libjava.mauve/xfails: Now passes System.getProperty test.

	For PR java/1343 and PR java/6336:
	* libjava.compile/PR1343.java: New file.

	For PR java/5913:
	* libjava.compile/PR5913.xfail: Removed.

From-SVN: r54259
2002-06-04 19:39:02 +00:00
Tom Tromey
4e176a9bbd * java/util/natTimeZone.cc: Include <stdio.h>.
From-SVN: r54258
2002-06-04 19:30:20 +00:00
Rainer Orth
d6c7e0738b libstdc++-v3-dg.exp (libstdc++-v3_target_compile): Search correct multilib testsuite dir for libv3test.
* testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3_target_compile):
	Search correct multilib testsuite dir for libv3test.

From-SVN: r54256
2002-06-04 18:44:35 +00:00
Paolo Carlini
05261e700c 2002-06-04 Paolo Carlini <pcarlini@unitus.it>
Gaby Dos Reis  <gdr@codesourcery.com>

	* include/bits/basic_string.tcc
	(basic_string::_S_construct(forward_iterator_tag):
	Fix typo in null pointer check.
	* testsuite/21_strings/ctor_copy_dtor.cc: Add test04.

Co-Authored-By: Gabriel Dos Reis <gdr@codesourcery.com>

From-SVN: r54255
2002-06-04 18:20:38 +00:00
Neil Booth
1ba7b41497 beos-elf.h, [...] (CPP_SPEC): Remove cpp_cpu.
config/i386:
	* beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
	i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
	mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
	sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
	win32.h	(CPP_SPEC): Remove cpp_cpu.
	* i386.h (TARGET_CPU_CPP_BUILTINS): Use.
	(CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!

From-SVN: r54254
2002-06-04 18:07:44 +00:00
Janis Johnson
135ca7b247 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
From-SVN: r54253
2002-06-04 18:03:45 +00:00
Jeff Law
85d6921689 sched-int.h (struct deps): New field libcall_block_tail_insn.
* sched-int.h (struct deps): New field libcall_block_tail_insn.
        * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
        * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
        is set, then mark the current insn as being part of a libcall
        scheduling group.
        (sched_analyze): Set and clear libcall_block_tail_insn appropriately.

        * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
        insns against the issue rate.

From-SVN: r54251
2002-06-04 11:46:14 -06:00
Jan Hubicka
63f4a88e28 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
* cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
	* final.c (final_scan_insn): Likewise.
	* ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
	NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
	* haifa-sched.c (unlink_other_notes): Likeewise.
	(reemit_notes): Likewise.
	* print-rtl.c (print_rtx): Likewise.
	* sched-deps (sched-analyze): Likewise.
	* rtl.c (note_insn_name): Likewise.
	* rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
	(enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
	(RANGE_*): Kill.

From-SVN: r54250
2002-06-04 17:32:59 +00:00
Jason Thorpe
a5d1f75b65 * varasm.c (mark_constants): Handle RTX format 'B'.
From-SVN: r54247
2002-06-04 16:22:49 +00:00
Paolo Carlini
23992195af 2002-06-04 Paolo Carlini <pcarlini@unitus.it>
* testsuite/22_locale/money_get_members_char.cc
	(test02): Add decimal point to long double constants.
	* testsuite/22_locale/money_get_members_wchar_t.cc
	(test02): Likewise.
	* testsuite/22_locale/money_put_members_char.cc
	(test02, test03, test06): Likewise.
	* testsuite/22_locale/money_put_members_wchar_t.cc:
	(test02, test03, test06): Likewise.
	* testsuite/22_locale/num_get_members_char.cc:
	(test02, test01): Likewise; suffix long long constants with LL.
	* testsuite/22_locale/num_get_members_wchar_t.cc:
	(test02, test01): Likewise.
	* testsuite/22_locale/num_put_members_char.cc:
	(test02, test01): Likewise.
	* testsuite/22_locale/num_put_members_wchar_t.cc:
	(test02, test01): Likewise.

From-SVN: r54243
2002-06-04 13:38:07 +00:00
Neil Booth
82eda77ed5 cpphash.h (FIRST, [...]): New.
* cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
	(struct cpp_context): Add traditional fields.
	* cppmacro.c (paste_all_tokens, push_ptoken_context,
	push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
	* cpptrad.c (skip_comment, lex_identifier,
	_cpp_read_logical_line_trad, scan_out_logical_line): Update.

From-SVN: r54242
2002-06-04 13:07:06 +00:00
Kazu Hirata
589005ff21 gbl-ctors.h: Fix formatting.
* gbl-ctors.h: Fix formatting.
	* gcc.c: Likewise.
	* gccspec.c: Likewise.
	* gcov.c: Likewise.
	* gcov-io.h: Likewise.
	* gcse.c: Likewise.
	* ggc-common.c: Likewise.
	* ggc.h: Likewise.
	* ggc-page.c: Likewise.
	* ggc-simple.c: Likewise.
	* global.c: Likewise.
	* graph.h: Likewise.
	* gthr-dce.h: Likewise.
	* gthr.h: Likewise.
	* gthr-posix.h: Likewise.
	* gthr-rtems.h: Likewise.
	* gthr-solaris.h: Likewise.
	* gthr-win32.h: Likewise.

From-SVN: r54240
2002-06-04 11:30:46 +00:00
Andreas Jaeger
94213cff2a Make-lang.in (gnatbind): Readd rule that has been lost in last patch.
* Make-lang.in (gnatbind): Readd rule that has been lost in last
	patch.

From-SVN: r54239
2002-06-04 12:55:49 +02:00