Commit Graph

43248 Commits

Author SHA1 Message Date
Benjamin Kosnik da2c31aee9 configure.in (release_VERSION): Update to 3.1.1.
2002-05-23  Benjamin Kosnik  <bkoz@redhat.com>

	* configure.in (release_VERSION): Update to 3.1.1.
	(libtool_VERSION): Update to 4:1:0.
	* configure: Regenerate.

From-SVN: r53791
2002-05-23 16:08:46 +00:00
Jason Thorpe b34c788149 c-common.c (warn_nonnull): Declare.
* c-common.c (warn_nonnull): Declare.
(c_common_attribute_table): Add "nonnull" attribute.
(handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
check_nonnull_arg, get_nonnull_operand, check_function_arguments,
check_function_arguments_recurse): New functions.
* c-common.h (warn_nonnull): Declare extern.
(check_function_arguments, check_function_arguments_recurse): New
prototypes.
* c-decl.c (c_decode_option): Add -Wnonnull option.
* c-format.c (set_Wformat): Set warn_nonnull if enabling
format checking.
(format_check_context): New structure.
(check_format_info_recurse): Remove recursion and rename to...
(check_format_arg): ...this.  Update comment.
(check_format_info): Use check_function_arguments_recurse.
* c-typeck.c (build_function_call): Call check_function_arguments
instead of check_function_format.
* doc/extend.texi: Document "nonnull" attribute.
* doc/invoke.texi: Docuemnt -Wnonnull option.
* testsuite/gcc.dg/nonnull-1.c: New test.
* testsuite/gcc.dg/nonnull-2.c: New test.

From-SVN: r53790
2002-05-23 15:48:05 +00:00
David S. Miller 9547983155 basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
2002-05-23  David S. Miller  <davem@redhat.com>

	* basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
	* cfgcleanup.c (cleanup_cfg): If it is set do not
	attempt to delete trivially dead insns.
	* except.c (finish_eh_generation): Pass it to cleanup_cfg.
	* toplev.c (rest_of_compilation): Document non-trivial aspect
	the RTL before optimize_save_area_alloca is run.

From-SVN: r53789
2002-05-23 08:22:05 -07:00
Neil Booth a97d139838 c-lex.c (indent_level): Remove.
* c-lex.c (indent_level): Remove.
	(cb_file_change, c_lex): Remove indent level handling.
	* c-lex.h (indent_level): Remove.
	* input.h (struct file_stack): Remove indent_level.
	* toplev.c (push_srcloc): Remove indent_level handling.
cp:
	* spew.c (yyungetc, snarf_block): Remove indent_level handling.

From-SVN: r53786
2002-05-23 12:05:38 +00:00
J"orn Rennecke e275a53506 weak-2.c: Allow optional leading underscore in scan-assembler symbol name.
* gcc.dg/weak-2.c: Allow optional leading underscore
	in scan-assembler symbol name.
	* gcc.dg/weak-3.c: Likewise.
	* gcc.dg/weak-4.c: Likewise.
	* gcc.dg/weak-5.c: Likewise.

From-SVN: r53785
2002-05-23 11:19:34 +01:00
Jakub Jelinek 66b408f2b0 re PR target/6753 (gcc 3.1 produces wrong code when optimizing for pentium4)
PR target/6753
	* config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
	of x in constraints for clarity.
	(sse_mov?fcc split): abort if op2 == op3.
	(sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
	sse_movsfcc_const0_4): Add earlyclobber.
	(sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
	sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
	Use Y instead of x in constraints.

	* gcc.dg/20020523-1.c: New test.

From-SVN: r53784
2002-05-23 11:29:29 +02:00
Richard Henderson 9217ef40d1 extend.texi (C99 Thread-Local Edits): New subsection.
* doc/extend.texi (C99 Thread-Local Edits): New subsection.
        (C++98 Thread-Local Edits): New subsection.

From-SVN: r53781
2002-05-23 01:21:36 -07:00
Richard Henderson 5bf0ebab2d i386.c, i386.h: Tidy comments and whitespace.
* config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
        (ix86_arch): Set type to enum processor_type.

From-SVN: r53779
2002-05-23 01:17:14 -07:00
Richard Henderson 57d4744644 i386.md (movsi_1, [...]): Use LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
* config/i386/i386.md (movsi_1, movdi_1_rex64): Use
        LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.

From-SVN: r53778
2002-05-23 01:16:13 -07:00
Jakub Jelinek 4832c9e166 configure.in: Fix as version test for binutils 2.12.1 releases (without dates).
* configure.in: Fix as version test for binutils 2.12.1 releases
	(without dates).
	* configure: Rebuilt.

From-SVN: r53775
2002-05-23 10:11:50 +02:00
Richard Henderson c8c0350922 i386.c (get_pic_label_name): New.
* config/i386/i386.c (get_pic_label_name): New.
        (load_pic_register): Remove.
        (output_set_got): New.
        (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
        * config/i386/i386.md (UNSPEC_SET_GOT): New.
        (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
        (prologue_set_got, prologue_get_pc): Remove.
        (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
        (builtin_setjmp_receiver): Use gen_set_got.
        * config/i386/i386-protos.h: Update.

From-SVN: r53773
2002-05-23 00:43:13 -07:00
Jan Hubicka d51f363255 * gcse.c (hash_expr): Do not use alias set for hashing.
From-SVN: r53772
2002-05-23 07:29:30 +00:00
GCC Administrator ba081f92de Daily bump.
From-SVN: r53771
2002-05-23 07:18:39 +00:00
Kevin Buettner b0a9338683 dbxout.c (dbxout_class_name_qualifiers): New function.
* dbxout.c (dbxout_class_name_qualifiers): New function.
        (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.

From-SVN: r53766
2002-05-22 23:50:32 -07:00
Neil Booth bdee42b16c cpperror.c (_cpp_begin_message): No special casing of CPP_FATAL_LIMIT.
* cpperror.c (_cpp_begin_message): No special casing
	of CPP_FATAL_LIMIT.
	* cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
	(output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
	* cpplib.c (do_include_common): Use DL_ERROR.
	* cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
	(DL_ICE): Renumber.
	* fix-header.c (read_scan_file): Update.

From-SVN: r53765
2002-05-23 06:07:45 +00:00
Neil Booth e67a7860dc const-str-2.m: Update now that we stop after a command line error.
testsuite:
	* objc.dg/const-str-2.m: Update now that we stop after
	a command line error.

From-SVN: r53764
2002-05-23 05:55:38 +00:00
Richard Henderson 0e07aff346 i386.c (ix86_expand_call): New function, extracted from md call patterns.
* config/i386/i386.c (ix86_expand_call): New function, extracted
        from md call patterns.  Add pic_offset_table_rtx to
        CALL_INSN_FUNCTION_USAGE when needed.
        * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
        (call_value_pop, call_value, untyped_call): Likewise.
        (call_exp, call_value_exp): Remove.
        * config/i386/i386-protos.h: Update.

From-SVN: r53763
2002-05-22 22:20:25 -07:00
Richard Henderson c32dd1ef25 * g++.dg/dg.exp: Fix typo in test pruneing.
From-SVN: r53762
2002-05-22 22:14:20 -07:00
Richard Henderson 6f001fdf2b varasm.c (default_section_type_flags): Check for VAR_DECL before using DECL_THREAD_LOCAL.
* varasm.c (default_section_type_flags): Check for VAR_DECL
        before using DECL_THREAD_LOCAL.

        * decl.c (obscure_complex_init): Check for VAR_DECL
        before using DECL_THREAD_LOCAL.

From-SVN: r53761
2002-05-22 22:14:02 -07:00
Bryce McKinlay a70b54fd56 Makefile.am (all-recursive): Depend on $all_java_class_files so that they build first.
* Makefile.am (all-recursive): Depend on $all_java_class_files so that
	they build first.
	* Makefile.in: Rebuilt.

From-SVN: r53760
2002-05-23 05:18:35 +01:00
Bryce McKinlay 30def3f537 re PR java/6729 (Compiler error causing break of java.lang.Character.isWhitespace)
* libjava.lang/PR6729.java: New file.
	* libjava.lang/PR6729.out: New file.

From-SVN: r53759
2002-05-23 04:32:05 +01:00
Bryce McKinlay 851ac95734 Test case for PR 6729.
From-SVN: r53758
2002-05-23 04:30:13 +01:00
David Edelsohn cbaaba19a4 aix43.h (LINK_SPEC): Add PE initializer.
* config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
        (STARTFILE_SPEC): Delete PE crt0.o.
        * config/rs6000/aix51.h: Same.
        * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
        * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
        function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
        (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
        * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.

From-SVN: r53756
2002-05-22 22:26:47 -04:00
Bruce Korb 1671e363a6 more README clarifications
From-SVN: r53755
2002-05-23 01:44:15 +00:00
Richard Henderson 7a1f3f5f3b decl.c (check_tag_decl): Handle RID_THREAD.
* decl.c (check_tag_decl): Handle RID_THREAD.
        (obscure_complex_init): Reject run-time init of tls.
        (grokvardecl, grokdeclarator): Handle RID_THREAD.
        * lex.c (reswords): Add __thread.
        (rid_to_yy): Map RID_THREAD to SCSPEC.

        * g++.dg/dg.exp: Prune the tls subdirectory.
        * g++.dg/tls/tls.exp, g++.dg/tls/trivial.C: New.
        * g++.dg/tls/diag-1.C, g++.dg/tls/diag-2.C: New.
        * g++.dg/tls/init-1.C: New.

From-SVN: r53754
2002-05-22 16:42:57 -07:00
Richard Henderson c711ba8e2e varasm.c (default_section_type_flags): Handle tls data and default sections.
* varasm.c (default_section_type_flags): Handle tls data and
        default sections.
        (default_unique_section): Handle tls sections.

From-SVN: r53753
2002-05-22 16:31:48 -07:00
Alan Modra 343f59d980 configure.in (CROSS): Define NATIVE_CROSS.
* configure.in (CROSS): Define NATIVE_CROSS.
	* configure: Regenerate.
	* gcc.c (STARTFILE_PREFIX_SPEC): Define.
	(startfile_prefix_spec): New var.
	(static_specs): Add startfile_prefix_spec.
	(do_spec_2): Split out from..
	(do_spec): ..here.
	(main): Process startfile_prefix_spec.
	* config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
	dynamic linker.
	(STARTFILE_PREFIX_SPEC): Define.
	(STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
        absolute paths.

From-SVN: r53752
2002-05-23 07:39:18 +09:30
Kazu Hirata df38348381 cpperror.c: Fix formatting.
* cpperror.c: Fix formatting.
	* cppexp.c: Likewise.
	* cppfiles.c: Likewise.
	* cpphash.c: Likewise.
	* cpphash.h: Likewise.
	* cppinit.c: Likewise.
	* cpplex.c: Likewise.
	* cpplib.c: Likewise.
	* cppmacro.c: Likewise.
	* cppmain.c: Likewise.
	* cppspec.c: Likewise.

From-SVN: r53751
2002-05-22 22:02:16 +00:00
Jakub Jelinek 2dd36f90d8 combine.c (force_to_mode): Use gen_int_mode.
* combine.c (force_to_mode): Use gen_int_mode.
	Don't clear CONST_INT bits outside of mode.

	* gcc.dg/20020517-1.c: New test.

From-SVN: r53750
2002-05-22 23:35:56 +02:00
Richard Henderson 8dc02d7f19 inclhack.def (thread_keyword): Match __thread as last arg.
* fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
        * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.

From-SVN: r53749
2002-05-22 14:29:38 -07:00
Jakub Jelinek 45f797836b re PR c/6643 (gcc fails in tree check for assignment to variable sized array)
PR c/6643
	* emit-rtl.c (widen_memory_access): Only call compare_tree_int
	if DECL_SIZE_UNIT is INTEGER_CST.

From-SVN: r53748
2002-05-22 23:06:16 +02:00
Roman Lechtchinsky 9f3dbd92d2 configure.in: Fix typo in the code checking for sys_errlist.
* configure.in: Fix typo in the code checking for sys_errlist.
* configure: Regenerated.

From-SVN: r53747
2002-05-22 16:57:15 -04:00
Richard Henderson 19f71cd70f * flow.c (life_analysis): Delete broken reg_label check.
From-SVN: r53746
2002-05-22 13:30:31 -07:00
Richard Henderson d5bcfcce1d inclhack.def (thread_keyword): Allow as any prototype arg.
* fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
        * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.

From-SVN: r53745
2002-05-22 13:02:16 -07:00
Jason Thorpe ac30211cb9 config.guess: Update to 2002-05-22 version.
* config.guess: Update to 2002-05-22 version.
* config.sub: Likewise.

From-SVN: r53742
2002-05-22 18:44:13 +00:00
J"orn Rennecke 985d311b09 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
From-SVN: r53741
2002-05-22 18:49:45 +01:00
J"orn Rennecke 2727afb551 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
From-SVN: r53740
2002-05-22 18:39:18 +01:00
Jakub Jelinek 0fe1cd7062 Fix a typo.
From-SVN: r53739
2002-05-22 18:42:52 +02:00
J"orn Rennecke 5ff9435403 t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
* t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
	(embed-bb.c): New rule.
	* config/sh/embed_bb.c: Delete.

From-SVN: r53737
2002-05-22 17:24:44 +01:00
Jason Merrill c324db0adf add initial newline
From-SVN: r53736
2002-05-22 12:00:34 -04:00
Kazu Hirata f6d45746ef * config/h8300/h8300.md (*andorqi3): New.
From-SVN: r53732
2002-05-22 11:21:31 +00:00
GCC Administrator 3396b5c88e Daily bump.
From-SVN: r53730
2002-05-22 07:19:32 +00:00
Neil Booth e5f3b786ed re PR preprocessor/6517 (gcc hangs on C compile with multiple "-I-")
PR preprocessor/6517
	* Makefile.in: Update.
	* c-common.c (c_common_post_options): Add preprocessor
	errors to the error count.
	* c-lang.c (c_post_options): Kill.
	(LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
	* hooks.h: Add header guards.
	* langhooks-def.h: Include hooks.h.
	(LANG_HOOKS_POST_OPTIONS): Update.
	* langhooks.h (struct lang_hooks): Update post_options.
	* toplev.c (parse_options_and_default_flags): Update.
cp:
	* cp-lang.c (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
	* cp-tree.h (cxx_post_options): Kill.
	* cp-lex.c (cxx_post_options): Kill.
objc:
	* objc-lang.c (objc_post_options): Kill.
	(LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.

From-SVN: r53724
2002-05-22 05:40:22 +00:00
Bruce Korb fd0a39154f regen: Use c_fix = format instead of sed
From-SVN: r53722
2002-05-22 03:04:28 +00:00
Bruce Korb 021c1f34a9 Use c_fix = format instead of sed
From-SVN: r53721
2002-05-22 02:59:19 +00:00
Bruce Korb 4c526be3eb add fix check
From-SVN: r53720
2002-05-22 02:55:06 +00:00
Bruce Korb 6994ac8522 describe how to fix up the results after adding/changing an inclhack.
From-SVN: r53719
2002-05-22 02:38:27 +00:00
Jeff Law c7539aa0a6 optabs.c (expand_binop): For double-word integer multiplies...
* optabs.c (expand_binop): For double-word integer multiplies,
        do not compute intermediate results into something that is
        not a register (such as a SUBREG or MEM).

From-SVN: r53718
2002-05-21 19:54:40 -06:00
Kazu Hirata f87c27b4ab cfgbuild.c: Fix formatting.
* cfgbuild.c: Fix formatting.
	* cfg.c: Likewise.
	* cfgcleanup.c: Likewise.
	* cfglayout.c: Likewise.
	* cfgloop.c: Likewise.
	* cfgrtl.c: Likewise.

From-SVN: r53717
2002-05-22 01:27:34 +00:00
Richard Henderson ec221d715c tls.exp, [...]: New directory and files.
* gcc.dg/tls/tls.exp, gcc.dg/tls/trivial.c, gcc.dg/tls/diag-1.c,
        gcc.dg/tls/diag-2.c, gcc.dg/tls/init-1.c: New directory and files.

From-SVN: r53716
2002-05-21 18:12:13 -07:00