Kaveh R. Ghazi
533c486363
ra-build.c (check_conflict_numbers): Hide unused function.
...
* ra-build.c (check_conflict_numbers): Hide unused function.
(livethrough_conflicts_bb): Avoid automatic aggregate
initialization.
(parts_to_webs_1): Avoid `U' integer constant modifier.
(conflicts_between_webs): Wrap a variable in the macro controlling
its usage.
* ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
(dump_igraph, dump_graph_cost): Avoid string concatenation
(dump_static_insn_cost): Avoid automatic aggregate
initialization.
* ra-rewrite.c (insert_stores): Avoid automatic aggregate
initialization.
(dump_cost): Avoid string concatenation
From-SVN: r55637
2002-07-22 02:04:25 +00:00
Richard Henderson
8943a0b4d8
expr.c (expand_expr): Don't use GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
...
* expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
* lang.c (java_unsafe_for_reeval): New.
(LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
From-SVN: r55636
2002-07-21 17:42:54 -07:00
Richard Henderson
b1aef35bb1
unroll.c (find_splittable_givs): Do not split DEST_ADDR givs that are not unrolled completely.
...
* unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
that are not unrolled completely.
From-SVN: r55635
2002-07-21 17:29:56 -07:00
Richard Henderson
5e1afb115e
loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
...
* loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
* loop.c (strength_reduce): Update.
* toplev.c (rest_of_compilation): Do unrolling in the first
loop pass, not the second.
From-SVN: r55634
2002-07-21 17:26:03 -07:00
Richard Henderson
c67a1cf6a8
emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL when flag_argument_noalias == 2.
...
* emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
when flag_argument_noalias == 2.
* alias.c (nonoverlapping_memrefs_p): Handle that.
* print-rtl.c (print_mem_expr): Likewise.
From-SVN: r55633
2002-07-21 17:23:47 -07:00
Hartmut Schirmer
b68daef415
libgcc2.c (__divdi3, __moddi3): Use unary minus operator instead of __negdi2 directly.
...
* libgcc2.c (__divdi3, __moddi3): Use unary minus operator
instead of __negdi2 directly.
From-SVN: r55632
2002-07-21 17:15:49 -07:00
Neil Booth
060a58c593
gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
...
* gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
* function.c (SYMBOL__MAIN): Remove definition.
* global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
* predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
* profile.c (GCOV_INDEX_TO_BB): Remove.
* sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
* simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
From-SVN: r55631
2002-07-21 22:01:58 +00:00
Neil Booth
2f8dd115d2
c-lex.c (GET_ENVIRONMENT): Remove.
...
* c-lex.c (GET_ENVIRONMENT): Remove.
* collect2.c (GET_ENV_PATH_LIST): Remove.
(prefix_from_env): Use GET_ENVIRONMENT.
* cppinit.c (GET_ENV_PATH_LIST): Remove.
(init_standard_includes): Use GET_ENVIRONMENT.
* defaults.h (GET_ENVIRONMENT): Define here if not already.
* gcc.c (GET_ENV_PATH_LIST): Remove.
(make_relative_prefix, process_command): Update.
* protoize.c (GET_ENV_PATH_LIST): Remove.
(do_processing): Update.
java:
* jcf-path.c (GET_ENV_PATH_LIST): Remove.
(jcf_path_init): Use GET_ENVIRONMENT.
From-SVN: r55630
2002-07-21 21:59:03 +00:00
Gabriel Dos Reis
565083069d
c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
...
2002-07-21 Gabriel Dos Reis <gdr@nerim.net>
* c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
(grokdeclarator): Likewise.
* c-format.c (C_STD_NAME): Likewise.
* c-lex.c (interpret_integer): Likewise.
* c-typeck.c (build_array_ref): Likewise.
* cpplex.c (_cpp_lex_direct): Likewise.
* toplev.c (documented_lang_options): Likewise.
testsuite/
2002-07-21 Gabriel Dos Reis <gdr@nerim.net>
* gcc.dg/c90-arraydecl-1.c: Change C89 too C90.
From-SVN: r55629
2002-07-21 21:35:17 +00:00
Neil Booth
e2f62855b2
* c-format.c (T99_I, T99_UI): Remove.
...
From-SVN: r55628
2002-07-21 20:39:34 +00:00
Neil Booth
c89d1dfd8b
* c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
...
From-SVN: r55627
2002-07-21 20:10:51 +00:00
Jan Hubicka
4669036917
gcse.c (do_local_cprop): Do not extend lifetimes of registers set by do_local_cprop.
...
* gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
do_local_cprop.
From-SVN: r55626
2002-07-21 19:38:08 +00:00
Andreas Jaeger
60ffc1b816
* reload1.c (fixup_abnormal_edges): Remove unused variable.
...
From-SVN: r55625
2002-07-21 21:20:22 +02:00
Bernd Schmidt
c05ffc49a3
Enhancements for the if-conversion pass
...
From-SVN: r55624
2002-07-21 14:32:25 +00:00
GCC Administrator
753e29b145
Daily bump.
...
From-SVN: r55622
2002-07-21 07:16:51 +00:00
Roger Sayle
b886c620ab
decl2.c (cxx_decode_option): Simplify -fhandle-exceptions test by using positive_option.
...
* decl2.c (cxx_decode_option): Simplify -fhandle-exceptions
test by using positive_option. Make whitespace consistent.
From-SVN: r55616
2002-07-21 02:07:01 +00:00
Jan Hubicka
ae860ff787
gcse.c: Include cselib.h
...
* gcse.c: Include cselib.h
(constptop_register): Break out from ...
(cprop_insn): ... here; kill basic_block argument.
(do_local_cprop, local_cprop_pass): New functions.
(one_cprop_pass): Call local_cprop_pass.
From-SVN: r55615
2002-07-20 22:56:05 +00:00
Roger Sayle
0da65b89f1
simplify-rtx.c (simplify_relational_operation): Optimize abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
...
* simplify-rtx.c (simplify_relational_operation): Optimize
abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
* gcc.c-torture/execute/20020720-1.c: New test case.
From-SVN: r55614
2002-07-20 22:24:58 +00:00
Michael Matz
68cd2524d6
* MAINTAINERS: Add myself as ra* maintainer.
...
From-SVN: r55613
2002-07-20 16:53:10 +00:00
Michael Matz
47cc673ae3
* ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
...
From-SVN: r55612
2002-07-20 16:52:37 +00:00
Neil Booth
68e6527569
cppexp.c (struct op): Add token pointer.
...
* cppexp.c (struct op): Add token pointer.
(check_promotion, CHECK_PROMOTION): New.
(optab): Update.
(_cpp_parse_expr): Update, use token pointer of struct op.
(reduce): Warn about change of sign owing to promotion.
* cppinit.c (cpp_handle_option): New warning if -Wall.
* cpplib.h (struct cpp_options): New member.
testsuite:
* gcc.dg/cpp/Wsignprom.c: New tests.
From-SVN: r55611
2002-07-20 13:31:56 +00:00
Gabriel Dos Reis
7a56114260
spew.c (struct uinparsed_test): Replace 'filename' and 'lineno' members with 'locus'.
...
* spew.c (struct uinparsed_test): Replace 'filename' and 'lineno'
members with 'locus'. Adjust use throughout.
(struct feed): Likewise.
(alloc_unparsed_test): Change prototype, take a 'const location_t *'.
Adjust use.
(snarf_defarg): Use error(), not error_with_file_and_line().
From-SVN: r55610
2002-07-20 12:45:45 +00:00
GCC Administrator
3d1fc12974
Daily bump.
...
From-SVN: r55608
2002-07-20 07:16:56 +00:00
Phil Edwards
aa2d5ba2c7
abi.txt: New file.
...
2002-07-20 Phil Edwards <pme@gcc.gnu.org>
* docs/html/abi.txt: New file.
* docs/html/23_containers/howto.html: Tweak vector-overhead text.
* docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
Import from upstream, R22.
* include/bits/char_traits.h, include/bits/stl_iterator.h,
include/bits/stl_iterator_base_types.h, libsupc++/exception,
libsupc++/new, libsupc++/typeinfo: Use @brief markup.
* include/bits/deque.tcc, include/bits/stl_alloc.h,
include/bits/stl_deque.h, include/bits/stl_list.h: Postpone removal
of deprecated functions until 3.4. (Same timeframe, different text.)
* include/bits/stl_vector.h: Ditto. Also do the same cleanups that
the other sequence classes received.
From-SVN: r55602
2002-07-20 06:26:27 +00:00
David Edelsohn
e3485bbc86
rs6000.md: Remove ppc630 fpcompare from single fpu list.
...
* config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
fpu list. Separate Power4 compare and delayed_compare. Correct
Power4 fpcompare.
(fix_truncdfsi2_internal): Restore FPR preference.
* config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
mcpu?power4, mcpu?604e. Remove mpower, mpower2, mpowerpc.
From-SVN: r55601
2002-07-19 22:20:16 -04:00
Momchil Velikov
449655a6fe
* reload1.c (reload_as_needed): Duplicate oldpat.
...
From-SVN: r55600
2002-07-19 18:30:31 -07:00
Alan Modra
a0c58ea9ac
New test.
...
From-SVN: r55599
2002-07-20 10:03:49 +09:30
Alan Modra
8b583747ad
re PR rtl-optimization/7130 (miscompiled code for gcc-3.1 on powerpc-unknown-linux-gnu with -funroll-all-loops)
...
PR optimization/7130
* loop.h (struct loop_info): Add "preconditioned".
* unroll.c (unroll_loop): Set it.
* doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
From-SVN: r55598
2002-07-20 10:01:15 +09:30
Zack Weinberg
0dc36574af
rtl.def (CODE_LABEL): Remove slot 8.
...
* rtl.def (CODE_LABEL): Remove slot 8.
* rtl.h (struct rtx_def): Document new uses of jump and call fields.
(LABEL_ALTERNATE_NAME): Delete.
(LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
* defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
* final.c (output_alternate_entry_point): New.
(final_scan_insn): Use it instead of
ASM_OUTPUT_ALTERNATE_LABEL_NAME. Do not consider possibility
of a case label being an alternate entry point.
* cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
* emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
(field deleted).
* print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
* doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
* doc/tm.texi: Delete documentation of
ASM_OUTPUT_ALTERNATE_LABEL_NAME.
From-SVN: r55597
2002-07-19 23:11:19 +00:00
Rainer Orth
59267987db
iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
...
* config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
(PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
(LINK_SPEC): Define.
(STARTFILE_SPEC): Define.
(ENDFILE_SPEC): Define.
* config/mips/iris6-o32.h (LINK_SPEC): Move ...
* config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
* config/mips/iris6-o32-gas.h: New file.
* config.gcc (mips-sgi-irix6*o32): Use it.
* config/mips/t-iris5-gas: New file.
* config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
From-SVN: r55596
2002-07-19 21:58:12 +00:00
Neil Booth
75aef48add
cppexp.c (ALWAYS_EVAL): Remove.
...
* cppexp.c (ALWAYS_EVAL): Remove.
(optab, reduce): Always evaluate.
(num_unary_op, num_binary_op, num_div_op): Issue diagnostics
only if not skipping evaluation.
testsuite:
* gcc.dg/cpp/expr.c: New tests.
From-SVN: r55595
2002-07-19 19:24:43 +00:00
Marek Michalkiewicz
72a5503d62
* config/avr/avr.c (debug_hard_reg_set): Remove.
...
From-SVN: r55594
2002-07-19 18:30:34 +00:00
Chris Demetriou
059ba71678
[ ChangeLog ]
...
2002-07-19 Chris Demetriou <cgd@broadcom.com>
* gcc.c (cpp_options): Include "%1" (cc1_spec).
[ cp/ChangeLog ]
2002-07-19 Chris Demetriou <cgd@broadcom.com>
* lang-specs.h (@c++): Include "%2" (cc1plus_spec) wherever
cpp_options is included.
From-SVN: r55591
2002-07-19 10:12:14 -07:00
Richard Henderson
544823b621
* loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
...
From-SVN: r55590
2002-07-19 09:31:40 -07:00
Kaz Kojima
f4b2b0d665
configure.in (sh[34]*-*-linux*): Add brackets.
...
* configure.in (sh[34]*-*-linux*): Add brackets.
* configure: Regenerate.
From-SVN: r55589
2002-07-19 15:30:58 +00:00
Bo Thorsen
7b20471292
ieeefp.h: Add x86-64 support.
...
2002-07-19 Bo Thorsen <bo@berlioz.suse.de>
* java/lang/ieeefp.h: Add x86-64 support.
* configure.in: Likewise.
* configure.host: Likewise.
* configure: Regenerated.
* sysdep/x86-64/locks.h: New file with x86-64 locks.
From-SVN: r55588
2002-07-19 16:41:15 +02:00
Alan Modra
c35383cbdf
prefix.c (update_path): Don't zap single .' path components unless followed by another
.' and fix...
...
* prefix.c (update_path): Don't zap single `.' path components
unless followed by another `.' and fix typo last patch.
From-SVN: r55586
2002-07-19 22:54:55 +09:30
Bo Thorsen
c42c75bfc4
Remove dead endif so x86-64 compilation works.
...
From-SVN: r55585
2002-07-19 13:21:36 +02:00
Bo Thorsen
48528b673e
gcconfig.h: Add x86-64 definitions.
...
2002-07-18 Bo Thorsen <bo@suse.de>
* include/private/gcconfig.h: Add x86-64 definitions.
* os_dep.c: Add x86-64 support.
* configure.in: Likewise.
* configure: Regenerate.
Approved by Hans Boehm.
From-SVN: r55584
2002-07-19 10:54:44 +02:00
GCC Administrator
7ea8939450
Daily bump.
...
From-SVN: r55583
2002-07-19 07:16:57 +00:00
Brendan Kehoe
926479c2b1
e <brendan@zen.org>
...
* bits/slice_array.h (_DEFINE_VALARRAY_OPERATOR): Fix typo of
_Nname to _Name.
From-SVN: r55578
2002-07-19 04:51:42 +00:00
Gabriel Dos Reis
bb403d6917
slice_array.h (slice_array<T>::operator=(const T&)): Constify.
...
* include/bits/slice_array.h
(slice_array<T>::operator=(const T&)): Constify.
* include/bits/gslice_array.h
(gslice_array<T>::operator=(const T&)): Likewise.
* include/bits/mask_array.h
(mask_array<T>::operator=(const T&)): Likewise.
* include/bits/indirect_array.h
(indirect_array<T>::operator=(const T&): Likewise.
:w
From-SVN: r55577
2002-07-19 04:45:20 +00:00
Kaz Kojima
ddebdfebad
Makefile.am: Add SH support.
...
* Makefile.am: Add SH support.
* Makefile.in: Regenerate.
* configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target.
* configure: Regenerate.
* include/ffi.h.in: Add SH support.
* src/sh/ffi.c: New file.
* src/sh/sysv.S: New file.
* src/types.c: Add SH support.
From-SVN: r55574
2002-07-19 01:08:43 +00:00
Bo Thorsen
7e31e4ae78
Forgot this file.
...
From-SVN: r55573
2002-07-19 02:37:03 +02:00
David Edelsohn
437deefaca
* g++.dg/opt/pr6713.C: Add template instantiation.
...
From-SVN: r55572
2002-07-18 20:07:56 -04:00
Bo Thorsen
c94974caed
[multiple changes]
...
2002-07-16 Bo Thorsen <bo@suse.de>
* src/x86/ffi64.c: New file that adds x86-64 support.
* src/x86/unix64.S: New file that handles argument setup for
x86-64.
* src/x86/sysv.S: Don't use this on x86-64.
* src/x86/ffi.c: Don't use this on x86-64.
Remove unused vars.
* src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
for x86-64.
* src/ffitest.c (struct6): New test that tests a special case in
the x86-64 ABI.
(struct7): Likewise.
(struct8): Likewise.
(struct9): Likewise.
(closure_test_fn): Silence warning about this when it's not used.
(main): Add the new tests.
(main): Fix a couple of wrong casts and silence some compiler warnings.
* include/ffi.h.in: Add x86-64 ABI definition.
* fficonfig.h.in: Regenerate.
* Makefile.am: Add x86-64 support.
* configure.in: Likewise.
* Makefile.in: Regenerate.
* configure: Likewise.
2002-06-24 Bo Thorsen <bo@suse.de>
* src/types.c: Merge settings for similar architectures.
Add x86-64 sizes and alignments.
2002-06-23 Bo Thorsen <bo@suse.de>
* src/arm/ffi.c (ffi_prep_args): Remove unused vars.
* src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
* src/mips/ffi.c (ffi_prep_args): Likewise.
* src/m68k/ffi.c (ffi_prep_args): Likewise.
From-SVN: r55571
2002-07-19 01:08:31 +02:00
Neil Booth
ad28cff7c1
cppexp.c (cpp_num_mul): Remove unused parameter.
...
* cppexp.c (cpp_num_mul): Remove unused parameter.
(UNARY, BINARY, OTHER, binary_handler): Remove.
(ALWAYS_EVAL): New.
(optab): Update.
(reduce): Refactor to a large switch, don't use a function
pointer.
From-SVN: r55570
2002-07-18 22:08:35 +00:00
Bo Thorsen
139b7f8686
linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
...
2002-07-18 Bo Thorsen <bo@berlioz.suse.de>
* config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
From-SVN: r55568
2002-07-18 22:56:33 +02:00
H.J. Lu
aab27b30e3
mach_dep.c (GC_push_regs): Remove the unused Linux/mips code.
...
2002-07-18 H.J. Lu <hjl@gnu.org>
* mach_dep.c (GC_push_regs): Remove the unused Linux/mips code.
From-SVN: r55566
2002-07-18 13:06:00 -07:00
H.J. Lu
5316699d53
configure.in (machdep): Don't add mips_sgi_mach_dep.lo for Linux/mips.
...
2002-07-18 H.J. Lu (hjl@gnu.org )
* configure.in (machdep): Don't add mips_sgi_mach_dep.lo for
Linux/mips.
From-SVN: r55565
2002-07-18 12:41:37 -07:00