Commit Graph

30548 Commits

Author SHA1 Message Date
Geoff Keating
4797e955c6 configure.in: Define macros that affect features before testing for features.
* configure.in: Define macros that affect features before
	testing for features.  Don't define _XOPEN_SOURCE.
	* configure: Regenerated.
	* config.in: Regenerated.

From-SVN: r36463
2000-09-17 00:12:34 +00:00
John Wehle
ae0fb1b9fb rtlanal.c (rtx_varies_p): Volatile asms vary.
* rtlanal.c (rtx_varies_p): Volatile asms vary.
	(rtx_unstable_p): Restructure code.  Volatile asms
	are unstable.

From-SVN: r36462
2000-09-16 23:38:20 +00:00
Richard Kenner
f93dacbdef function.h (no_debugging_symbols): New field.
* function.h (no_debugging_symbols): New field.
	* integrate.c (save_for_inline): Renamed from save_for_inline_nocopy.
	Initialize no_debugging_symbols.
	(output_inline_function): Save and restore write_symbols and set from
	no_debugging_symbols.
	* toplev.c (rest_of_compilation): Call save_for_inline.
	* tree.h: Update comment.

From-SVN: r36461
2000-09-16 14:58:51 -04:00
Richard Kenner
5748b2cb4b stor-layout.c (place_field): Don't do anything if field or its type are ERROR_MARK.
* stor-layout.c (place_field): Don't do anything if field or
	its type are ERROR_MARK.

From-SVN: r36460
2000-09-16 14:31:00 -04:00
Laurynas Biveinis
ae0f4dee02 cppfiles.c (purge_cache): use munmap() only if MMAP_THRESHOLD defined.
* cppfiles.c (purge_cache): use munmap() only if MMAP_THRESHOLD
	 defined.
	(read_include_file): Ensure inc->mmaped is initialized.

From-SVN: r36459
2000-09-16 18:17:53 +00:00
Richard Henderson
6f84c9bdaa * cppiles.c (purge_cache): Use PTR not caddr_t.
From-SVN: r36458
2000-09-16 10:48:10 -07:00
Richard Henderson
4faefccb49 Regenerate.
From-SVN: r36457
2000-09-16 10:46:25 -07:00
Hans-Peter Nilsson
50c57e7bb5 gcc.c: In description for %{<S}, say the option removed is -S.
* gcc.c: In description for %{<S}, say the option removed is -S.
	* invoke.texi (Spec Files): Ditto.

From-SVN: r36456
2000-09-16 13:29:43 +00:00
Andreas Jaeger
dd74554610 configure.in: Always define _GNU_SOURCE to make interfaces visible that were hidden by only...
2000-09-16  Andreas Jaeger  <aj@suse.de>

	* configure.in: Always define _GNU_SOURCE to make interfaces
	visible that were hidden by only defining _GNU_SOURCE.
	* configure: Regenerated.

From-SVN: r36455
2000-09-16 15:13:49 +02:00
Andreas Jaeger
12acf3a987 gcc_update: Remove gcc/c-parse.gperf.
2000-09-16  Andreas Jaeger  <aj@suse.de>

	* gcc_update: Remove gcc/c-parse.gperf.

From-SVN: r36454
2000-09-16 14:14:12 +02:00
Jeff Law
52e055e4ae Daily bump.
From-SVN: r36453
2000-09-16 01:45:06 -06:00
Neil Booth
08ebc1c594 cpplex.c (push_macro_context): Set an argument's level after calling parse_args.
* cpplex.c (push_macro_context): Set an argument's level after
	calling parse_args.  We could loop infinitely otherwise.
	* gcc.dg/cpp/macro2.c: New testcase.

From-SVN: r36452
2000-09-16 07:18:06 +00:00
Benjamin Kosnik
d9fbca261e locale.cc (locale::locale(const char* __name)): Consolidate name setting.
2000-09-15  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

        * src/locale.cc (locale::locale(const char* __name)): Consolidate
        name setting. Add checks for NULL __name pointers. Remove calls to
        _S_initialize() as initial locale initialization can either be
        assumed, or needs to be made consistent throughout locale
        constructors.
        (locale::locale(const locale& __other, const char* __name,
        category __cat): Add checks for NULL name. Add checks for
        assignment to self.
        * src/localename.cc (locale::_Impl:: _Impl(const _Impl& __other,
        const string& __name, category __cat, size_t __refs)): Set correct
        name, has_name values.
        * testsuite/22_locale/ctor_copy_dtor.cc (test01): More tests.
        * docs/22_locale/locale.html: New file, more unfinished docs...

From-SVN: r36451
2000-09-15 22:52:52 +00:00
Benjamin Kosnik
04807c2864 locale.cc (locale::locale(const char* __name)): Consolidate name setting.
2000-09-15  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* src/locale.cc (locale::locale(const char* __name)): Consolidate
	name setting. Add checks for NULL __name pointers. Remove calls to
	_S_initialize() as initial locale initialization can either be
	assumed, or needs to be made consistent throughout locale
	construtors.
	(locale::locale(const locale& __other, const char* __name,
	category __cat): Add checks for NULL name. Add checks for
	assignment to self.
	* src/localename.cc (locale::_Impl:: _Impl(const _Impl& __other,
	const string& __name, category __cat, size_t __refs)): Set correct
	name, has_name values.
	* testsuite/22_locale/ctor_copy_dtor.cc (test01): More tests.
	* docs/22_locale/locale.html: New file, more unfinished docs...

From-SVN: r36450
2000-09-15 22:50:11 +00:00
Tom Tromey
4c4b521a59 * lex.h: Use HAVE_ICONV_H, not HAVE_ICONV.
From-SVN: r36449
2000-09-15 22:31:56 +00:00
Tom Tromey
16abe34a39 configure, config.in: Rebuilt.
* configure, config.in: Rebuilt.
	* configure.in: Check for iconv.h.  Define _XOPEN_SOURCE.

From-SVN: r36448
2000-09-15 22:05:48 +00:00
Greg McGary
61c16b1038 cppmacro.c (check_trad_stringification): Check token text pointers against limit before dereferencing.
* cppmacro.c (check_trad_stringification): Check token
	text pointers against limit before dereferencing.

From-SVN: r36447
2000-09-15 21:25:02 +00:00
Joseph Myers
6a357625bd c-common.c (format_wanted_type): New structure.
* c-common.c (format_wanted_type): New structure.
	(check_format_types): New function.
	(check_format_info): Pass all checking of types of format
	arguments, including width and precision arguments, to this new
	function.

From-SVN: r36446
2000-09-15 22:16:31 +01:00
Gerald Pfeifer
6a1d1088df * BUGS: Remove file.
From-SVN: r36445
2000-09-15 19:29:17 +00:00
Jakub Jelinek
54f5c4b098 alpha.c (override_options): ev6 cache latencies from Richard Henderson.
* config/alpha/alpha.c (override_options): ev6 cache latencies
	from Richard Henderson.  Don't allow -mmemory-latency=L0.

From-SVN: r36444
2000-09-15 21:02:22 +02:00
Jakub Jelinek
a3b815cb1b alpha.h (TARGET_CPU_EV5, [...]): Define.
* config/alpha/alpha.h (TARGET_CPU_EV5, TARGET_CPU_EV6): Define.
	(TARGET_OPTIONS): Add tune=.
	(alpha_tune_string): Declare.
	* config/alpha/alpha.c (override_options): Add cpu_table.
	Use alpha_cpu_string first to set both alpha_cpu and target_flags
	and then alpha_tune_string to set alpha_cpu only.
	Replace tests for PROCESSOR_EV* with TARGET_CPU_EV* tests.
	* config/alpha/elf.h (ASM_FILE_START): Likewise.
	* config/alpha/osf.h (ASM_FILE_START): Likewise.
	* config/alpha/openbsd.h (ASM_FILE_START): Likewise.

From-SVN: r36443
2000-09-15 20:10:11 +02:00
Jan Hubicka
9076b9c1ac i386-protos.h (no_comparison_operator, [...]): Remove.
* i386-protos.h (no_comparison_operator, uno_comparison_operator):
	Remove.
	(ix86_comparison_operator, ix86_cc_mode): Declare
	* i386.h (CCGC, CCGCO): New modes.
	(SELECT_CC_MODE): Move offline to ....
	* i386.c (ix86_cc_mode): .... here; use new modes.
	(ix86_comparison_operator): New.
	(fcmov_comparison_operator): Ensure proper mode.
	(put_condition_mode): More sanity checking.
	(ix86_match_ccmode): Handle new modes.
	(ix86_expand_fp_compare): GEU requires CCmode.
	(ix86_expand_strlensi_unroll_1): Use emit_cmp_and_jump_insn instead of
	doing it by hand.
	* i386.md (cmp?i_ccz_1): Remove
	(cmp?i_ccno_1): Use ix86_match_ccmode.
	(cmp?i_minus_1): New.
	(cmpsi_1): New expander.
	(cmpqi_ext_1): Use match_ccmode
	(cmpqi_ext_3): New expander.
	(cmpqi_ext_3_insn): Rename from cmpqi_ext_3.
	(cmpqi_ext_4): Use match_ccmode.
	(add?i_?): Use match_ccmode.
	(add?i_6): New.
	(test?i_ccz_1): Remove
	(test?i_1): New.
	(testsi_ccno_1, testqi_ccz_1, testqi_ext_ccno_0): New expander.
	(testqi_ext_0): Use ix86_match_ccmode.
	(*xorqi_cc_ext_1): Use ix86_match_ccmode.
	(xorqi_cc_ext_1): New expander.
	(shift patterns): Use CCGOCmode for all shifts except for sar.
	(setcc_?, jcc_?, miv?icc_nic): Use ix86_comparison_operator.
	(setcc_3, jcc_3, miv?icc_c): Remove.

From-SVN: r36442
2000-09-15 17:48:45 +00:00
William Cohen
5eca72d980 Described changes to dwarf2out.c.
From-SVN: r36441
2000-09-15 17:43:25 +00:00
William Cohen
3724ec0731 Revision to accurately generate debugging information
for constant parameters to inlined functions.

From-SVN: r36440
2000-09-15 17:41:27 +00:00
Kazu Hirata
d25a45d44b gcc.c: Fix formatting.
2000-09-15  Kazu Hirata  <kazu@hxi.com>

	* gcc.c: Fix formatting.

From-SVN: r36439
2000-09-15 17:09:19 +00:00
Kazu Hirata
d7ce9a83bd * MAINTAINERS: Add myself to Write After Approval list.
From-SVN: r36438
2000-09-15 17:05:41 +00:00
Kazu Hirata
182a4620e8 i386.md: Fix a comment typo.
2000-09-15  Kazu Hirata  <kazu@hxi.com>

	* config/i386/i386.md: Fix a comment typo.

From-SVN: r36437
2000-09-15 17:01:40 +00:00
Bernd Schmidt
0c4c9b167d Avoid explicit references to fpul register in machine description
From-SVN: r36436
2000-09-15 16:33:52 +00:00
Bernd Schmidt
188c5e6ca8 Don't make bogus libcall blocks
From-SVN: r36435
2000-09-15 16:21:53 +00:00
Bernd Schmidt
642dfa8b65 Make libcall blocks for truncations
From-SVN: r36434
2000-09-15 16:16:33 +00:00
Bernd Schmidt
aff2c2d3af Avoid copying libcall results directly to user variables.
From-SVN: r36433
2000-09-15 15:35:03 +00:00
Michael Sokolov
4eaa189a5c * splay-tree.c: #include <stdio.h>.
From-SVN: r36432
2000-09-15 11:16:14 -04:00
Richard Henderson
308ecea098 expmed.c (store_bit_field): Consider naturally aligned memory for direct reference.
* expmed.c (store_bit_field): Consider naturally aligned
        memory for direct reference.

From-SVN: r36431
2000-09-15 04:13:04 -07:00
Richard Henderson
e01acbb16e alpha.c (alpha_expand_unaligned_load): Force all AND addresses into alias set 0.
* config/alpha/alpha.c (alpha_expand_unaligned_load): Force all
        AND addresses into alias set 0.
        (alpha_expand_unaligned_store): Likewise.
        (alpha_expand_unaligned_load_words): Likewise.
        (alpha_expand_unaligned_store_words): Likewise.

From-SVN: r36430
2000-09-15 04:09:07 -07:00
Bernd Schmidt
dd193c7921 Set rsize properly for args passed by reference.
From-SVN: r36429
2000-09-15 09:24:47 +00:00
Bernd Schmidt
c363a0c03b Make sure movstr_i4 libfuncs are compiled for -m4-nofpu
From-SVN: r36428
2000-09-15 09:02:15 +00:00
Jeff Law
ef8c4649e6 Daily bump.
From-SVN: r36427
2000-09-15 01:45:08 -06:00
Benjamin Kosnik
e4cc865929 locale.cc (locale::name()): Implement.
2000-09-14  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* src/locale.cc (locale::name()): Implement.
	(_Impl(size_t __numfacets, size_t __refs, bool __namep = false,
	string __name = "*")): Change signature.
	(locale::classic): Initialize the "C" locale as a named locale.
	* bits/localefwd.h (locale): Change _M_num_references to
	_M_references. Eliminate _M_cached_name_ok. Rename _M_cached_name
	to _M_name.
	* bits/localefwd.h: Tweaks.
	* src/localename.cc: Tweaks.
	* testsuite/22_locale/ctor_copy_dtor.cc (test01): Add tests.
	(test01): Fix.

	* bits/basic_string.h: Consistency check, change _M_state ->
	_M_references.

From-SVN: r36426
2000-09-15 07:06:46 +00:00
Neil Booth
ff94c74765 cpplex.c (ON_REST_ARG): Correct the test.
* cpplex.c (ON_REST_ARG): Correct the test.
	(maybe_paste_with_next): Duplicate a token that fail pasting,
	and clear its PASTE_LEFT flag, so that nested pasting attempts
	do not occur.
	* gcc.dg/cpp/paste10.c: Testcase.

From-SVN: r36424
2000-09-15 05:55:36 +00:00
Richard Henderson
b437f1a754 calls.c (precompute_register_parameters): Use COSTS_N_INSNS, not 2.
* calls.c (precompute_register_parameters): Use COSTS_N_INSNS, not 2.
        * cse.c (rtx_cost): Likewise.
        * optabls.c (expand_binop): Likewise.
        (expand_twoval_binop, prepare_cmp_insn): Likewise.
        * regclass.c (copy_cost): Likewise.
        * reload1.c (reload_cse_move2add): Likewise.

From-SVN: r36423
2000-09-14 19:56:02 -07:00
Joseph Myers
d9dbd9b14c c-parse.in (reswords): Add _Complex.
* c-parse.in (reswords): Add _Complex.

cp:
	* lex.c (reswords): Add _Complex.

From-SVN: r36422
2000-09-15 00:44:47 +01:00
J. David Anglin
9207d3b1d7 * gcc.1: Delete documentation for -undef preprocessor option.
From-SVN: r36421
2000-09-14 17:04:51 -06:00
Jeffrey A Law
cf160a6309 * gcc.c-torture/execute/20000914-1.c: New test.
From-SVN: r36420
2000-09-14 16:48:20 -06:00
Neil Booth
ec1fb90e95 * paste9.c: New preprocessor ## test.
From-SVN: r36419
2000-09-14 21:13:10 +00:00
Alexandre Oliva
395a451c8c sh.h (INIT_SECTION_ASM_OP, [...]): Remove define.
* config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
STARTFILE_SPEC, ENDFILE_SPEC): Remove define.
* config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
Remove undefine before config/elfos.h.
* config/sh/t-sh (EXTRA_MULTILIB_PARTS): Comment out.

From-SVN: r36418
2000-09-14 20:31:01 +00:00
Benjamin Kosnik
b75bedeb2a string.tcc (_Rep::_S_max_size): Use typename for its size_type return type.
2000-09-14  Brendan Kehoe  <brendan@zen.org>

        * bits/string.tcc (_Rep::_S_max_size): Use typename for its size_type
        return type.

        * src/Makefile.an (headers): Also install backward/fstream.h.
        * src/Makefile.in: Regenerate.

        * bits/char_traits.h (char_traits<_CharT>::get_state,
        char_traits<char>::get_state, char_traits<wchar_t>::get_state): Pass
        argument in by reference, not by value. Uglify to _S_get_state.
	(char_traits<*>::__eos): Uglify to _S_eos.
	* bits/std_ostream.h (ends(basic_ostream<_CharT, _Traits>& __os)):
	Change __eos to _S_eos.

From-SVN: r36417
2000-09-14 19:44:03 +00:00
Alexandre Oliva
3c71084a53 Makefile.am: Re-work shell commands that exceeded command-line length limits.
* Makefile.am: Re-work shell commands that exceeded command-line
length limits.
* Makefile.in: Rebuilt.

From-SVN: r36416
2000-09-14 19:24:08 +00:00
Benjamin Kosnik
8a17a7b460 static_members.cc: New file.
2000-09-13  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/22_locale/static_members.cc: New file.
	* testsuite/22_locale/ctor_copy_dtor.cc: New file.
	* src/locale.cc: Minor formatting tweaks.

From-SVN: r36415
2000-09-14 19:11:14 +00:00
Kazu Hirata
17f0f8fac7 invoke.texi (H8/300 Options): Add -ms2600.
* invoke.texi (H8/300 Options): Add -ms2600.
        * config/h8300.c (h8300_init_once): Output an error when -ms2600
        is used without -ms.
        * config/h8300.h (TARGET_MAC): New.
        (TARGET_SWITCHES): Add -ms2600 and -mno-s2600.
        (CONDITIONA_REGISTER_USAGE): Disable the mac register on any
        machine other than H8/S2600.
        * config/h8300.md: Accept mac instructions on the H8/S2600 instead
        of the H8/S2000.

From-SVN: r36414
2000-09-14 12:09:16 -06:00
Alexandre Oliva
9e8f528cd4 reload.c (find_reloads_address_1): Generate reloads for auto_inc pseudos that refer to the original pseudos...
* reload.c (find_reloads_address_1): Generate reloads for auto_inc
pseudos that refer to the original pseudos, not only to their
equivalent memory locations.

From-SVN: r36413
2000-09-14 17:42:48 +00:00