Commit Graph

31101 Commits

Author SHA1 Message Date
Joseph Myers
81cf47b209 c-common.c (check_format_types): Check for writing through a NULL pointer argument.
* c-common.c (check_format_types): Check for writing through a
	NULL pointer argument.

testsuite:
	* gcc.dg/c90-printf-1.c, gcc.dg/c90-scanf-1.c: Add tests for
	writing through null pointers; remove comment about testing
	unterminated strings.

From-SVN: r36936
2000-10-18 17:09:35 +01:00
Hans-Peter Nilsson
27c35f4b24 tm.texi (Exception Region Output): Document DWARF_CIE_DATA_ALIGNMENT.
* tm.texi (Exception Region Output): Document
	DWARF_CIE_DATA_ALIGNMENT.
	* dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Wrap definition in
	#ifndef.
	[ENABLE_CHECKING] (reg_save): Abort if offset is not a multiple of
	DWARF_CIE_DATA_ALIGNMENT.

From-SVN: r36935
2000-10-18 12:49:47 +00:00
Michael Hayes
4a7da9b553 basic-block.h (struct loop): Delete fields pre_header_root and pre_header_trace and replace with...
* basic-block.h (struct loop): Delete fields pre_header_root
	and pre_header_trace and replace with pre_header_edges
	and num_pre_header_edges.
	* flow.c (flow_loop_dump): Dump pre_header_edges.
	(flow_loops_free): Free pre_header_edges.
	(flow_loop_pre_header_scan): Calculate pre_header_edges.

From-SVN: r36934
2000-10-18 10:10:38 +00:00
Gerald Pfeifer
42c1075091 contrib.texi: Update references to steering committee members and Jeff Law's entry.
* contrib.texi: Update references to steering committee members
	and Jeff Law's entry.

From-SVN: r36933
2000-10-18 09:05:45 +00:00
Jeff Law
864ab6c772 Daily bump.
From-SVN: r36932
2000-10-18 01:45:11 -06:00
Joseph Myers
ade7d3cc1d c-common.c (CPLUSPLUS_STD_VER, [...]): Define.
* c-common.c (CPLUSPLUS_STD_VER, C_STD_VER, C_STD_NAME): Define.
	(maybe_read_dollar_number, check_format_info_main): Use them for
	pedantic warning messages.

From-SVN: r36931
2000-10-18 08:33:04 +01:00
Kazu Hirata
8682223f1d h8300.c: Fix a comment typo.
2000-10-18  Kazu Hirata  <kazu@hxi.com>

	* h8300.c: Fix a comment typo.
	(round_frame_size): New.
	(compute_saved_regs): Likewise.
	(push): Likewise.
	(pop): Likewise.
	(push_order): Remove.
	(pop_order): Likewise.
	(function_prologue): Rearrange code for readability.
	(function_epilogue): Likewise.

From-SVN: r36930
2000-10-18 07:17:36 +00:00
Joseph Myers
c525126030 c-common.c (check_format_info_main): Minor cleanup...
* c-common.c (check_format_info_main): Minor cleanup: move
	variables into inner scopes; initialize declarations where
	appropriate; don't hardcode "scanf" name on warning for zero
	width.

From-SVN: r36929
2000-10-18 07:49:34 +01:00
Mark Mitchell
67673f5c5b c-common.c (back_end_hook): New variable.
* c-common.c (back_end_hook): New variable.
	* c-common.h (back_end_hook): Declare it.
	* c-lang.c (finish_file): Use it.

	* emit-rtl.c (init_emit_once): Initialize the const_int_htab
	earlier.

	* cp-tree.h (back_end_hook): Remove declaration.
	* decl2.c (back_end_hook): Remove definition.

	* dump.c (dequeue_and_dump): Dump TREE_USED.

From-SVN: r36928
2000-10-18 05:45:37 +00:00
Jan Hubicka
265dab10ab i386.c (ix86_comparison_operator, [...]): Handle CCRCmode.
* i386.c (ix86_comparison_operator, put_condition_code,
        ix86_match_ccmode, ix86_cc_mode): Handle CCRCmode.
        (ix86_expand_strlensi_unroll_1): Use CCRCmode.
        * i386.h (EXTRA_CC_MODES): Add CCRCmode.
        * i386.md (adddi and negdi splitter): Use CCRCmode.
        (add?i_3, add?i_4, add?i_5): Use CCRCmode; swap operands
        (subsi3_carry): add '*'
        (addsi3_carry_rc, subsi3_carry_rc, x86_movsicc_0_m1_rc): New.
        (cmp to add peep2): Use CCRCmode; swap operands.

From-SVN: r36927
2000-10-18 05:11:37 +00:00
Kazu Hirata
f27e6bb249 reorg.c: Fix formatting.
2000-10-18  Kazu Hirata  <kazu@hxi.com>

	* reorg.c: Fix formatting.

From-SVN: r36926
2000-10-18 04:41:35 +00:00
Kazu Hirata
b054460b55 h8300.md: Remove an unnecessary sign_extend expander that is used when not optimizing.
2000-10-18  Kazu Hirata  <kazu@hxi.com>

	* config/h8300/h8300.md: Remove an unnecessary sign_extend
	expander that is used when not optimizing.  Output a tab after
	each assembly insns.

From-SVN: r36925
2000-10-18 04:32:48 +00:00
Matthew Hiller
15edc0cb96 * gcc.c-torture/execute/20001017-2.c: New test.
From-SVN: r36924
2000-10-17 20:27:57 -06:00
Joern Rennecke
19ca869b6d reload1.c (move2add_note_store): Check for simple auto-inc in destination.
* reload1.c (move2add_note_store): Check for simple
        auto-inc in destination.

From-SVN: r36923
2000-10-17 20:26:26 -06:00
Michael Chastain
2ddb1ca161 i386-aout.h: define INT_ASM_OP.
2000-09-26  Michael Chastain  <chastain@redhat.com>

	* config/i386/i386-aout.h: define INT_ASM_OP.

From-SVN: r36922
2000-10-17 20:23:58 -06:00
Brad Lucier
8fef2e474b * spew.c (snarf_defarg): Cast 2nd arg to obstack_blank to (int).
From-SVN: r36921
2000-10-17 20:19:56 -06:00
Alan Modra
11881f37b7 * pa.c (print_operand): Handle case 'c' for .vtable_inherit
From-SVN: r36920
2000-10-17 20:12:03 -06:00
Martin Buchholz
189244a414 * testsuite/27_io/istream_seeks.cc: Fix spelling typo. * testsuite/27_io/ostream_seeks.cc: Similarly.
From-SVN: r36919
2000-10-17 20:07:54 -06:00
Martin Buchholz
33e39e3870 * i370.md: Fix spelling typo.
From-SVN: r36918
2000-10-17 20:06:38 -06:00
Joseph Myers
0fe6838788 20001018-1.c: New test.
* gcc.c-torture/compile/20001018-1.c: New test.
	* gcc.c-torture/compile/20001018-1.x: Xfail.

From-SVN: r36917
2000-10-18 00:35:41 +01:00
Franz Sirl
2b7fb03423 * ChangeLog: Remove CVS conflict marker, fix typos.
From-SVN: r36916
2000-10-17 23:26:18 +00:00
Alexandre Petit-Bianco
1a2ebe6d57 except.c (free_eh_ranges): Don't free `whole_range.'
2000-10-17  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * except.c (free_eh_ranges): Don't free `whole_range.'

(http://gcc.gnu.org/ml/gcc-patches/2000-10/msg00557.html)

From-SVN: r36915
2000-10-17 15:48:59 -07:00
Franz Sirl
832ea3b309 function.c (locate_and_pad_parm): Don't align stack unconditionally.
2000-10-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* function.c (locate_and_pad_parm): Don't align stack unconditionally.
	Fixes execute/20001017-1.c on pwerpc-linux-gnu.
	* expr.c (store_constructor): Apply MEM_ALIAS_SET to MEMs only.
	* rs6000/rs6000.c (rs6000_hash_constant): use X0INT to access a
	LABEL_REF.
	* rs6000/rs6000.h (NO_DOLLAR_IN_LABEL, DOLLARS_IN_IDENTIFIERS,
	ENCODE_SECTION_INFO, ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Move from
	here...
	* rs6000/aix.h: ...to here.
	* rs6000/linux.h (ASM_APP_ON, ASM_APP_OFF): Define to Linux-style.

From-SVN: r36914
2000-10-17 22:17:34 +00:00
Franz Sirl
34137553f9 20001017-1.c: New test.
2000-10-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* gcc.c-torture/execute/20001017-1.c: New test.

From-SVN: r36913
2000-10-17 22:04:51 +00:00
Jakub Jelinek
4c646291f1 alpha.h (ASM_OUTPUT_MI_THUNK): Reload gp if needed.
* config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Reload gp if needed.
	* config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Always use call, make
	sure linker can relax even the delay slot mov %g1,%o7, fix output
	formating.

From-SVN: r36912
2000-10-17 23:45:23 +02:00
Kazu Hirata
07e0fe3dae h8300.md: Remove an unnecessary zero_extend expander that is used when not optimizing.
2000-10-17  Kazu Hirata  <kazu@hxi.com>

	* config/h8300/h8300.md: Remove an unnecessary zero_extend
	expander that is used when not optimizing.  Output a tab after
	each assembly insns.

From-SVN: r36911
2000-10-17 20:17:35 +00:00
Chandrakala Chavva
10501d8f2f Added new option --target-help.
From-SVN: r36910
2000-10-17 16:07:51 -04:00
Graham Stott
c330e9c1e2 i386.md (testqi_1): Add missing operand prefix for operand 0.
* config/i386/i386.md (testqi_1): Add missing operand prefix
 	for operand 0.
 	* config/i386/i386-protos.h: Add missing prototype.

From-SVN: r36909
2000-10-17 19:12:43 +00:00
Graham Stott
343bf72840 * i386.md (testqi_1): Add missing operand prefix for operand 0.
From-SVN: r36908
2000-10-17 19:05:40 +00:00
Graham Stott
6ea15a909f * i386-protos.h: Add missing prototype.
From-SVN: r36907
2000-10-17 19:01:14 +00:00
Diego Novillo
69ac483175 unix.h (ASM_OUTPUT_MI_THUNK): Symbol _GLOBAL_OFFSET_TABLE should not have a $ prefix when using -mintel-syntax.
2000-10-17  Diego Novillo  <dnovillo@cygnus.com>

	* config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Symbol
	_GLOBAL_OFFSET_TABLE should not have a $ prefix when
	using -mintel-syntax.

From-SVN: r36906
2000-10-17 14:47:47 -04:00
Joseph Myers
b691cb00a8 c-common.c (FMT_FLAG_DOLLAR_MULTIPLE): Define.
* c-common.c (FMT_FLAG_DOLLAR_MULTIPLE): Define.
	(format_types): Use it for printf.
	(maybe_read_dollar_number): Add parameter for the kind of format
	involved.  Warn for multiple use for arguments if this is
	inappropriate for the kind of format involved.
	(check_format_info_main): Update calls to maybe_read_dollar_number.

testsuite:
	* gcc.dg/format-xopen-1.c: Update comments; adjust for checking
	for multiple use of arguments with scanf formats; add tests for
	multiple use of arguments.

From-SVN: r36905
2000-10-17 19:16:15 +01:00
J. David Anglin
948eab23d0 inclhack.def (hpux_maxint): Also apply fix to values.h.
* inclhack.def (hpux_maxint): Also apply fix to values.h.
        * fixincl.x: Rebuilt.

From-SVN: r36904
2000-10-17 10:35:12 -06:00
Alexandre Oliva
1651ab853f genrecog.c (write_switch): Return the first condition that needs a label.
* genrecog.c (write_switch): Return the first condition that needs a
label.

From-SVN: r36903
2000-10-17 14:27:53 +00:00
Benjamin Kosnik
a911742751 via Alexandre Oliva <aoliva@redhat.com>
2000-10-17  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	via Alexandre Oliva  <aoliva@redhat.com>
	* libsupc++/Makefile.am: Add --tag CXX, --tag CC, comments.
	* libsupc++/Makefile.in: Regenerate.
	* src/Makefile.am: Duplicate code.
	* src/Makefile.in: Regenerate.

	* acinclude.m4 (GLIBCPP_ENABLE_RELIBGCC): Take this out.
	* aclocal.m4: Regenerate.
	* configure.in: And here.
	* configure: Regenerate.

	* acinclude.m4 (GLIBCPP_CHECK_LINKER_FEATURES): Disable
	test for SECTION_LDFLAGS.

From-SVN: r36902
2000-10-17 10:12:23 +00:00
Bernd Schmidt
2683ed8d12 Improved sequence point warnings
From-SVN: r36901
2000-10-17 09:34:21 +00:00
Benjamin Kosnik
9ece379a8a Shadow headers would work if libsupc++ was strict about namespaces.
2000-10-16  Benjamin Kosnik  <bkoz@gnu.org>

	Shadow headers would work if libsupc++ was strict about namespaces.
	This only possible if g++ maps std::size_t -> size_t. (Hint hint.)
	* include/c_std/assert.h: Add guards.
	* include/c_std/bits/std_climits.h: Correct typo.
	* include/c_std/ctype.h: Remove #error.

	* libio/libioP.h: Break up extern "C" bits around includes.
	* libio/libio.h: Only include C headers, or else _C_legacy namespaces
	will be nested.
	* libio/libioP.h: Same here.

From-SVN: r36900
2000-10-17 08:25:08 +00:00
Jeff Law
030d2f3414 Daily bump.
From-SVN: r36899
2000-10-17 01:45:08 -06:00
Joseph Myers
652469d0ab decl.c (WINT_TYPE): Define.
* decl.c (WINT_TYPE): Define.
	(init_decl_processing): Create types unsigned_ptrdiff_type_node,
	c_size_type_node, signed_size_type_node and wint_type_node.

From-SVN: r36898
2000-10-17 08:00:06 +01:00
Joseph Myers
74ff46299b c-common.h (warn_missing_format_attribute): New variable.
* c-common.h (warn_missing_format_attribute): New variable.
	* c-decl.c (warn_missing_format_attribute): New variable.
	(c_decode_option): Decode -Wmissing-format-attribute and
	-Wno-missing-format-attribute.
	* c-common.c (check_function_format): If
	-Wmissing-format-attribute, give a warning where a vprintf or
	vscanf function is called by a function without its own printf or
	scanf attribute.
	* toplev.c (documented_lang_options): Add
	-Wmissing-format-attribute.
	* invoke.texi: Document -Wmissing-format-attribute.

cp:
	* decl2.c (warn_missing_format_attribute): New variable.
	(lang_decode_option): Decode -Wmissing-format-attribute.

testsuite:
	* gcc.dg/format-miss-1.c: New test.

From-SVN: r36897
2000-10-17 07:52:06 +01:00
Marc Espie
1d3b0e2c19 invoke.texi (-shared): Insist on requiring code generation flags to be used along with -shared...
2000-10-17  Marc Espie <espie@openbsd.org>

	* invoke.texi (-shared): Insist on requiring code generation flags
	to be used along with -shared, and document the subtle failure that
	may occur otherwise.

From-SVN: r36896
2000-10-17 05:20:14 +00:00
J. David Anglin
1c2171710d * pa.md (return_internal): Move use' after return'.
From-SVN: r36895
2000-10-16 22:43:58 -06:00
Michael Meissner
a5e1b54847 Only create gcc/configargs.h if gcc build directory is present
From-SVN: r36894
2000-10-17 03:00:51 +00:00
Anthony Green
8e7ab3ff22 decl.c (init_decl_processing): Call init_class_processing before anything else.
* decl.c (init_decl_processing): Call init_class_processing before
	anything else.

From-SVN: r36892
2000-10-16 23:45:07 +01:00
Jakub Jelinek
a5ad11e16e * gcc.c-torture/execute/20001013-1.c: New test.
From-SVN: r36891
2000-10-16 21:55:27 +02:00
Kazu Hirata
f2a9645f10 h8300.c: Include ggc.h.
2000-10-16  Kazu Hirata  <kazu@hxi.com>

	* config/h8300/h8300.c: Include ggc.h.

From-SVN: r36890
2000-10-16 19:20:38 +00:00
Mark Mitchell
634790f4bd typeck.c (qualify_type): Remove.
* typeck.c (qualify_type): Remove.
	(composite_pointer_type): Fix handling of conversions to `cv void*'.

From-SVN: r36889
2000-10-16 18:41:49 +00:00
Mark Mitchell
ebd5daee50 Replace with URL for FSF service directory
From-SVN: r36888
2000-10-16 17:50:49 +00:00
Diego Novillo
c1f9de5a73 unix.h (ASM_OUTPUT_MI_THUNK): Output final jump using appropriate assembler dialect.
2000-10-13  Diego Novillo  <dnovillo@cygnus.com>

	* config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Output final jump using
	appropriate assembler dialect.

From-SVN: r36887
2000-10-16 12:52:47 -04:00
Theodore Papadopoulo
11f3dc8922 * machmode.def: Correct comment.
From-SVN: r36886
2000-10-16 10:38:49 -06:00