Commit Graph

60488 Commits

Author SHA1 Message Date
Nick Clifton
2acc29bdd3 config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the GCC ABI.
doc/invoke.texi: Document this new switch and also the -mrenesas switch.

From-SVN: r85557
2004-08-04 13:54:51 +00:00
Paolo Bonzini
d09212551a gcc_update: libjava/configure.ac -> configure.in.
2004-08-04  Paolo Bonzini  <gcc@gcc.gnu.org>

	* gcc_update: libjava/configure.ac -> configure.in.  Automake
	1.4 does not handle configure.ac properly.

From-SVN: r85556
2004-08-04 12:08:09 +00:00
Paolo Bonzini
8fde06bb8c Reverted renaming of configure.in to configure.ac, has to wait
for updating of automake.

From-SVN: r85555
2004-08-04 12:05:07 +00:00
Nathan Sidwell
2496942a61 cfglayout.c (insn_locators_initialize): Update the current location before initializing a location.
* cfglayout.c (insn_locators_initialize): Update the current
	location before initializing a location.

From-SVN: r85554
2004-08-04 11:30:31 +00:00
Roger Sayle
545eacdb41 typeck.c (convert_ieee_real_to_integer): Call fold on the range checking trees as they're being built.
2004-08-04  Roger Sayle  <roger@eyesopen.com>
            Andrew Haley  <aph@redhat.com>

        * typeck.c (convert_ieee_real_to_integer): Call fold on the range
        checking trees as they're being built.
        (convert): Call convert_ieee_real_to_integer if we're
        converting a constant, even if we're writing a class file.

Co-Authored-By: Andrew Haley <aph@redhat.com>

From-SVN: r85553
2004-08-04 11:13:07 +00:00
Andreas Schwab
da96112d34 * gcc_update: libjava/configure.in -> configure.ac.
From-SVN: r85552
2004-08-04 11:01:10 +00:00
Paolo Bonzini
32daf59b44 configure.ac: New name of...
2004-08-04  Paolo Bonzini  <bonzini@gnu.org>

        * configure.ac: New name of...
	* configure.in: ... this file.

From-SVN: r85551
2004-08-04 09:57:09 +00:00
Zack Weinberg
bcc7f70854 Correct PR numbers
From-SVN: r85547
2004-08-04 07:25:19 +00:00
Zack Weinberg
403f85032f dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
* dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
	(dbxout_function_end): Return after emitting the "Lscope" symbol
	under the same conditions that this function formerly wasn't called.
	Add explanatory comments.

From-SVN: r85546
2004-08-04 07:23:14 +00:00
Zack Weinberg
ca0433930a re PR target/14680 (reload_cse_simplify_operands triggers internal error on sparc64 when compiling netpbm)
PR 14680
	* c-decl.c (record_builtin_type): Call debug_hooks->type_decl
	on the new decl.

From-SVN: r85545
2004-08-04 06:33:07 +00:00
Zack Weinberg
7e2e8179ee re PR c++/13596 (value of __cplusplus)
PR 13596
	* dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
	functions, broken out of dbxout_block.
	(dbxout_block): The block at depth 0 should get LBRAC/RBRAC
	stabs too, if it contains symbols.  Use the begin_label and
	the Lscope label (emitted by dbxout_function_end) for the
	range of this block.

From-SVN: r85544
2004-08-04 06:32:01 +00:00
Mark Mitchell
73a8adb62e class.c (build_vtable): Do not set DECL_VISIBILITY here.
* class.c (build_vtable): Do not set DECL_VISIBILITY here.
	(check_field_decls): Or here.
	(check_methods): Or here.
	(initialize_array): Don't mess with DECL_CONTEXT.
	* cp-tree.h (start_decl): Adjust prototype.
	(determine_visibility): New function.
	* decl.c (duplicate_decls): Remove checks for hidden "operator
	new".
	(build_library_fn_1): Give all library functions default
	visibility.
	(start_decl): Add pop_scope_p parameter.  Tidy.
	(cp_finish_decl): Do not pop scopes here.  Call
	determine_visibility for variable definitions.
	(start_preparsed_function): Call determine_visibility.
	* decl2.c (determine_visibility): New function.
	* method.c (use_thunk): Fix formatting.
	* parser.c (cp_parser_condition): Adjust calls to start_decl.
	(cp_parser_init_declarator): Likewise.
	* pt.c (instantiate_decl): Always call pop_nested_class.
	* rtti.c (get_tinfo_decl): Do not set DECL_VISIBILITY.
	(tinfo_base_init): Likewise.

	* g++.dg/ext/visibility/assign1.C: New test.
	* g++.dg/ext/visibility/new1.C: Likewise.

From-SVN: r85543
2004-08-04 05:27:52 +00:00
Nathanael Nerode
aed6152d8c configure.in: Eliminate uses of changequote (mostly by quoting []).
* configure.in: Eliminate uses of changequote (mostly by quoting []).
	Replace most top level 'dnl' comments with '#' comments, conforming
	to new autoconf style.  Use AS_HELP_STRING throughout; improve a few
	help strings.
	* configure: Rebuilt.

From-SVN: r85540
2004-08-04 02:52:53 +00:00
David Edelsohn
b0e9ac0850 * gcc.dg/compat/struct-layout-1.exp: Fix error message typo.
From-SVN: r85538
2004-08-03 21:43:30 -04:00
Nathanael Nerode
5d75ba94f1 * doc/install.texi: Update autoconf version requirements.
From-SVN: r85536
2004-08-04 00:19:30 +00:00
GCC Administrator
fff63b30a4 Daily bump.
From-SVN: r85534
2004-08-04 00:16:44 +00:00
Zack Weinberg
2e4e72b1c0 defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
* defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
	* recog.c (general_operand, immediate_operand, nonmemory_operand)
	(asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
	* regclass.c (record_reg_classes): Likewise.
	* reload.c (find_reloads): Likewise.
	* reload1.c (reload): Likewise.

From-SVN: r85512
2004-08-03 23:37:34 +00:00
Zack Weinberg
f9942f4e14 gensupport.c (init_md_reader_args_cb): Renamed from init_md_reader_args.
* gensupport.c (init_md_reader_args_cb): Renamed from
	init_md_reader_args.  Add third option, callback function for
	parsing program-specific options.  Add diagnosis of incorrect
	number of input files.
	(init_md_reader): Fold into init_md_reader_args_cb.
	(init_md_reader_args): Now a thin wrapper around
	init_md_reader_args_cb.
	* gensupport.h: Update prototypes.

	* genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
	* genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
	* genrecog.c: No need to diagnose lack of an input file;
	init_md_reader_args will handle it.
	* genconditions.c: Likewise, and use init_md_reader_args.
	* genconstants.c: Likewise, and no need to call read_md_rtx.

From-SVN: r85511
2004-08-03 23:30:45 +00:00
Joseph Myers
9cbe78fbeb c-decl.c (implicitly_declare): Diagnose incompatible implicit declarations.
* c-decl.c (implicitly_declare): Diagnose incompatible implicit
	declarations.

testsuite:
	* gcc.dg/redecl-5.c: New test.
	* gcc.dg/format/attr-6.c: Expect warning for implicit declaration
	of scanf.

From-SVN: r85509
2004-08-03 23:09:13 +01:00
Kelley Cook
2e84789689 maintainer-scripts (snapshot_print): New function.
2004-08-03 Kelley Cook  <kcook@gcc.gnu.org>

	* maintainer-scripts (snapshot_print): New function.
	(announce_snapshot): Generate announcment on the fly.
	Use a directory link for LATEST.
	* snapshot-README: Delete.
	* snapshot-index.html: Delete.

From-SVN: r85508
2004-08-03 21:42:18 +00:00
Mike Stump
3e558e8064 darwin-c.c: Don't search in "/Local/Library/Frameworks" for frameworks.
* config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
	for frameworks.
	* doc/invoke.texi (Darwin Options): Update to reflect above.

From-SVN: r85507
2004-08-03 21:26:16 +00:00
Roger Sayle
a0fac73d2b re PR middle-end/16790 (Integer down cast ignored in larger expression)
PR middle-end/16790
	* fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
	truncations, not just global truncations.

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

From-SVN: r85506
2004-08-03 21:24:32 +00:00
Mark Mitchell
5357b1f9df symbian1.c: New test.
* gcc.dg/symbian1.c: New test.
	* gcc.dg/symbian2.c: Likewise.

From-SVN: r85505
2004-08-03 21:20:36 +00:00
Andrew Pinski
cddbddb790 re PR bootstrap/16865 (False alarm about use of uninitialized variable breaks bootstrap at -O3)
2004-08-03  Andrew Pinski  <apinski@apple.com>

        PR bootstrap/16865
        * loop-iv.c (simplify_using_assignment): Initialize lhs.

From-SVN: r85504
2004-08-03 14:13:15 -07:00
Paul Brook
bebf829d88 configure.in: Check for MPFR as well as GMP.
* configure.in: Check for MPFR as well as GMP.
	* configure: Regenerate.
	* gcc/doc/install.texi: Document MPFR requirement.

From-SVN: r85503
2004-08-03 21:11:29 +00:00
Nathanael Nerode
bf7d3350b9 Revert bogus portion of previous commit
From-SVN: r85502
2004-08-03 20:52:01 +00:00
Robert Millan
98a5bb3b0e configure.in: Turn mt-linux into mt-gnu.
ChangeLog:

2004-08-01  Robert Millan  <robertmh@gnu.org>

	* configure.in: Turn mt-linux into mt-gnu. Use mt-gnu and enable
	libmudflap for all GNU-based systems (with Glibc).
	* configure: Regenerate.

config/ChangeLog:

2004-08-01  Robert Millan  <robertmh@gnu.org>

	* mt-linux: Rename to ...
	* mt-gnu: ... this.

libffi/ChangeLog:

2004-08-01  Robert Millan  <robertmh@gnu.org>

	* configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
	* configure: Regenerate.

From-SVN: r85501
2004-08-03 20:48:48 +00:00
Maciej W. Rozycki
4d44736452 acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h> and mmap() explicitly instead of relying on preset...
2004-07-30  Maciej W. Rozycki  <macro@linux-mips.org>

	* acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
	and mmap() explicitly instead of relying on preset autoconf cache
	variables.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.

From-SVN: r85500
2004-08-03 20:36:23 +00:00
Nathanael Nerode
b522f768ab Remove spurious conflict marker
From-SVN: r85499
2004-08-03 20:33:52 +00:00
Maciej W. Rozycki
3b0727a0e9 aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h> and mmap() explicitly instead of relying on preset...
2004-07-30  Maciej W. Rozycki  <macro@linux-mips.org>

	* aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
	and mmap() explicitly instead of relying on preset autoconf cache
	variables.
	* configure: Regenerate.

From-SVN: r85498
2004-08-03 20:33:23 +00:00
H.J. Lu
f6bc51cbc4 re PR target/16570 (missing _mm_malloc and _mm_free functions in xmmintrin.h)
gcc/

2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/16570
	* config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
	to tmake_file.
	(i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
	(i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
	to tmake_file.

	* config/i386/t-gmm_malloc: New file.
	* config/i386/t-pmm_malloc: Likewise.

	* config/i386/xmmintrin.h: Include <mm_malloc.h>.

2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
	    Tanguy Fautr�  <tfautre@pandora.be>

	* config/i386/pmm_malloc.h: New file.

2004-08-03  Danny Smith  <dannysmith@users.sourceforge.net>

	* config/i386/gmm_malloc.h: New file.

gcc/testsuite/

2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/16570
	* gcc.dg/i386-sse-9.c: New test.

From-SVN: r85496
2004-08-03 12:52:52 -07:00
Nathanael Nerode
ed69811298 acinclude.m4: Include no-executables.m4.
* acinclude.m4: Include no-executables.m4.
	* aclocal.m4: Rebuild.
	* configure.in: Convert to the autoconf 2.59 version of
	of the no-executables hack, and also of the nonstandard CXX
	hack and the multilibbed CC and CXX hack.  Change prerequisite
	to autoconf 2.59.
	* configure: Rebuild with autoconf 2.59.  (Woo-hoo!)
	* Makefile.in, gcj/Makefile.in, include/Makefile.in,
	testsuite/Makefile.in: Regenerate.

From-SVN: r85495
2004-08-03 19:40:56 +00:00
Dale Johannesen
d974312d07 rs6000.c (machopic_output_stub): Align Darwin stubs.
2004-08-03  Dale Johannesen  <dalej@apple.com>

	* config/rs6000/rs6000.c (machopic_output_stub):  Align Darwin stubs.
	* c-common.c: Include opts.h.
	(c_common_get_alias_set): Fix check for a single input file.
	* toplev.c: Remove current_file_decl.
	* tree.h: Ditto.

From-SVN: r85492
2004-08-03 18:23:35 +00:00
Tom Tromey
8e9031ec4d * jni.cc: Reindented.
From-SVN: r85491
2004-08-03 17:38:30 +00:00
Mark Mitchell
336bd6ac16 config.gcc (arm*-*-symbianelf*): New target.
* config.gcc (arm*-*-symbianelf*): New target.
	* config/arm/symbian.h: New file.

From-SVN: r85490
2004-08-03 17:38:09 +00:00
Mark Mitchell
3fc1f660b2 gthr-gnat.c: Add visibility #pragmas.
* gthr-gnat.c: Add visibility #pragmas.
	* gthr-gnat.h : Likewise.
	* gthr.h: Likewise.
	* libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
	(__ffsDI2): Likewise.
	(__clzSI2): Likewise.
	(__ctzSI2): Likewise.
	(__ctzDI2): Likewise.
	(__popcountSI2): Likewise.
	(__popcountDI2): Likewise.
	(__paritySI2): Likewise.
	(__parityDI2): Likewise.
	* libgcc2.h: Add visibility #pragmas.
	(__clzDI2): Add prototype.
	(__clzSI2): Likewise.
	(__ctzSI2): Likewise.
	(__ffsDI2): Likewise.
	(__ffsSI2): Likewise.
	(__ctzDI2): Likewise.
	(__popcountSI2): Likewise.
	(__popcountDI2): Likewise.
	(__paritySI2): Likewise.
	(__parityDI2): Likewise.
	* unwind-dw2-fde.h: Add visibility #pragmas.
	* unwind.h: Likewise.

From-SVN: r85489
2004-08-03 16:57:40 +00:00
David Edelsohn
066cd96767 rs6000.c (rs6000_rtx_costs): Calculate cost of constants more accurately.
* config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
        constants more accurately.  Adjust costs for FMA instructions.
        Add cases for most logical and float operations.  Recurse into
        most operands.

Co-Authored-By: Dale Johannesen <dalej@apple.com>
Co-Authored-By: Roger Sayle <roger@eyesopen.com>

From-SVN: r85488
2004-08-03 11:31:38 -04:00
Richard Earnshaw
315cd6b5a6 * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
From-SVN: r85487
2004-08-03 15:22:03 +00:00
Pat Haugen
8589ae1578 ra-build.c (conflicts_between_webs): For webs that cross a call add conflicts to regs_invalidated_by_call.
2004-08-03  Pat Haugen  <pthaugen@us.ibm.com>

        * ra-build.c (conflicts_between_webs): For webs that cross a call add
        conflicts to regs_invalidated_by_call.

From-SVN: r85482
2004-08-03 11:00:49 -04:00
Paul Brook
8ee6eb4e8c * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
From-SVN: r85480
2004-08-03 14:30:46 +00:00
Joseph Myers
7a1f75f1b7 * gcc.dg/array-7.c, gcc.dg/c99-tag-2.c: New tests.
From-SVN: r85479
2004-08-03 15:19:39 +01:00
Dale Johannesen
029277b7c7 mf-runtime.c: Conditionalize POSIX_SOURCE for Darwin.
2004-08-03  Dale Johannesen  <dalej@apple.com>

         * mf-runtime.c: Conditionalize POSIX_SOURCE for Darwin.

From-SVN: r85478
2004-08-03 14:19:26 +00:00
Jan Hubicka
d836edf84f coverage.c (tree_coverage_counter_ref): Fix computation of the new ARRAY_REF argument.
* coverage.c (tree_coverage_counter_ref): Fix computation of the new
	ARRAY_REF argument.

From-SVN: r85477
2004-08-03 14:05:15 +00:00
Richard Earnshaw
f9e8581ad4 arm-cores.def: Sort by architecture.
* arm-cores.def: Sort by architecture.  Add arm946es, arm966es,
arm968es, arm10e, arm1020e, arm1022e.
* invoke.texi: Update list of ARM cores.
* arm-tune.md: Regenerate.

From-SVN: r85476
2004-08-03 13:52:49 +00:00
Frank Ch. Eigler
73c3d5687f mf-runtime.c (compare_uintptr_t): Remove function.
2004-08-03  Frank Ch. Eigler  <fche@redhat.com>

	* mf-runtime.c (compare_uintptr_t): Remove function.  Inline
	simplified contents in all former callers.

From-SVN: r85475
2004-08-03 13:40:21 +00:00
Richard Earnshaw
1e45521fdb * gcc_update: gcc/config/arm/arm-tune.md -> arm-cores.def gentune.sh.
From-SVN: r85474
2004-08-03 13:35:47 +00:00
Roger Sayle
453310d80b re PR libfortran/16137 (Fortran compiler unable to produce executables as libfortran depends on C99 math functions)
PR libgfortran/16137
	* configure.ac: Add tests for acosf, asinf, atan2f, atanf, ceilf,
	copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
	scalbnf, sinf, sinhf, sqrtf, tanf and tanhf in libm.
	* config.h.in: Regenerate.
	* configure: Regenerate.

	* instrinsics/c99_functions.c (acosf, asinf, atan2f, atanf, ceilf,
	copysignf, cosf, coshf, expf, floorf, frexpf, hypotf, logf, log10f,
	nextafterf, scalbnf, sinf, sinhf, sqrtf, tanf, tanhf): New stub
	implementations for targets that don't support C99 float functions.

From-SVN: r85473
2004-08-03 13:28:26 +00:00
Richard Earnshaw
2f71a20a3e gentune.sh: New file.
* arm/gentune.sh: New file.
* arm/t-arm: New file.
* arm/arm-tune.md: New file (autogenerated).
* config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
* arm.md (attribute tune): Delete.  Include arm-tune.md.

From-SVN: r85472
2004-08-03 13:27:02 +00:00
Paolo Carlini
6e0a7f2bdb list.tcc: Trivial formatting fixes.
2004-08-03  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/list.tcc: Trivial formatting fixes.

From-SVN: r85470
2004-08-03 10:11:31 +00:00
Paolo Bonzini
1a5d37a123 gcc.c (add_prefix, [...]): Remove penultimate parameter.
2004-08-03  Paolo Bonzini <bonzini@gnu.org>

	* gcc.c (add_prefix, add_sysrooted_prefix): Remove
	penultimate parameter.  All callers adjusted.
	(struct prefix_list): Remove used_flag_ptr.
	(find_a_file): Do not set *pl->used_flag_ptr.
	(warn_B, warn_std_ptr): Remove.

From-SVN: r85469
2004-08-03 09:38:08 +00:00