Neil Booth
b9e2d17b40
cpplex.c (cpp_interpret_charconst): Truncate as well as sign-extend.
...
* cpplex.c (cpp_interpret_charconst): Truncate as well as
sign-extend.
doc:
* cpp.texi: Clarify multichar charconst valuation.
testsuite:
* gcc.dg/cpp/charconst-4.c: More tests.
From-SVN: r53301
2002-05-08 21:02:31 +00:00
Mark Mitchell
4434687a6c
config.guess: Import 2002-03-20 version.
...
* config.guess: Import 2002-03-20 version.
* config.sub: Import 2002-04-26 version.
From-SVN: r53300
2002-05-08 20:26:35 +00:00
Mark Mitchell
8d8269fa9c
* doc/invoke.texi: Document -mwindiss option.
...
From-SVN: r53299
2002-05-08 19:33:47 +00:00
Mark Mitchell
281524f4cb
jcf-write.c (write_classfile): Write the file to a temporary file and then rename it.
...
* java/jcf-write.c (write_classfile): Write the file to a
temporary file and then rename it.
* libjava/Makefile.am (all_java_source_files): New variable.
(all_java_class_files): Likewise.
.java.class: New rule.
(CLEANFILES): Remove tmp-list.
* libjava/Makefile.in: Regenerated.
From-SVN: r53298
2002-05-08 19:24:42 +00:00
Rainer Orth
a89e49c724
* config-ml.in: Allow for PWDCMD to determine ML_POPDIR.
...
From-SVN: r53297
2002-05-08 18:26:56 +00:00
Mark Mitchell
83b35bd149
Adjust copyright dates
...
From-SVN: r53296
2002-05-08 18:26:06 +00:00
Jason Merrill
29b91443e9
re PR c++/6381 (Missing assembler label)
...
* dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
* dwarf2out.c (gen_type_die): Abort on broken recursion.
PR c++/6381
* dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
REAL_CST.
From-SVN: r53295
2002-05-08 11:33:04 -04:00
Nick Clifton
6c76b95000
Do not allow big-endian/little-endian multilibs to override arm/thumb multilibs.
...
Do not allow big-endian/little-endian multilibs to override arm/thumb
multilibs.
Do not build hardware floating point multilibs, nor apcs-26 multilibs for
the Thumb.
From-SVN: r53294
2002-05-08 15:01:13 +00:00
Mark Mitchell
f90bf7ca71
re PR target/6569 (sparc-sun-solaris2.7 C testsuite regression in compile/20011119-2.c)
...
PR c/6569.
* varasm.c (mark_weak): New function.
(merge_weak): Use it. Do not call declare_weak.
(declare_weak): Use merge_weak.
PR c/6569
* gcc.dg/weak-3.c: Update location of warning messages.
* gcc.dg/weak-5.c: Likewise.
From-SVN: r53293
2002-05-08 14:37:55 +00:00
David Billinghurst
61b8fbecf7
libjava.exp (test_libjava_from_javac): Append .exe to executable names.
...
2002-05-09 David.Billinghurst <David.Billinghurst@riotinto.com>
* testsuite/lib/libjava.exp (test_libjava_from_javac):
Append .exe to executable names. Fix for cygwin.
From-SVN: r53291
2002-05-08 12:38:55 +00:00
Jan Hubicka
3ae9b37906
Fix merge typos.
...
From-SVN: r53288
2002-05-08 11:16:37 +00:00
Jan Hubicka
1e150f2cd2
cse.c (dead_libcall_p): Update counts.
...
* cse.c (dead_libcall_p): Update counts.
(delete_trivially_dead_insns): Update call of dead_libcall_p.
From-SVN: r53287
2002-05-08 11:13:54 +00:00
Jan Hubicka
969d70ca57
cfglayout.c (function_tail_eff_head): Rename to ...
...
* cfglayout.c (function_tail_eff_head): Rename to ...
(function_footer): ... this one.
(unlink_insn_chain): New functions.
(label_for_bb): Only call block_label and emit debug message.
(record_effective_endpoints): Actually unlink the headers and footers.
(fixup_reorder_cahin): Re-insert the unlinked sequences.
(cfg_layout_duplicate_bb): Use duplicate_insn_chain.
* cfglayout.h (struct reorder_block_def): New fields footer/header;
remove eff_head/eff_end.
* rtl.h (set_first_insn): Declare.
* emit-rtl.c (set_first_insn): New function.
* cfglayout.c (fixup_reorder_chain): Dump duplicated
(cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
cfg_layout_duplicate_bb): New global function.
(duplicate_insn_chain): New static function.
* cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
cfg_layout_duplicate_bb): Declare.
(struct reorder_block_def): Add "original" field.
* emit-rtl.c (emit_copy_of_insn_after): New function.
* rtl.h (emit_copy_of_insn_after): Declare.
* cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
(fixup_reorder_chain): properly handle edges to exit block.
Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
Jan Hubicka <jh@suse.cz>
* basic-block.h (note_prediction_to_br_prob): declare.
* c-semantics.c: Inlucde predit.h
(expand_stmt): predict GOTO_STMT as not taken.
* cfgcleanup.c: (delete_unreachable_blocks): Make global.
(cleanup_cfg): Do not free tail_recursion_list.
* cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
(flow_delete_block): Kill predictions past end of basic block.
* output.h (delete_unreachable_blocks): Declare.
* predict.c (predicted_by_p, process_note_predictions,
process_note_prediction, last_block_p): New function.
(estimate_probability): Bypass loop on PRED_CONTINUE;
do not handle noreturn heuristics; kill PRED_RETURN; add
PRED_EARLY_RETURN.
* predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
* predict.h (IS_TAKEN): New constant.
* print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
* rtl.c (NOTE_INSN_PREDICTION): New.
* rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
New macro.
(insn_note): add NOTE_INSN_PREDICTION.
* sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
CFG; free tail_recursion_label_list.
* stmt.c: Include predict.h;
(return_prediction): New.
(expand_value_return): Use it.
* toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
From-SVN: r53285
2002-05-08 09:17:27 +00:00
Richard Sandiford
41f8d041be
mips.md: Name the unspecs with define_constant.
...
* config/mips/mips.md: Name the unspecs with define_constant.
(*HILO_delay): Rename to 'hilo_delay' (no star).
(reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
(reload_outdi, reload_outsi): Likewise.
From-SVN: r53284
2002-05-08 08:01:35 +00:00
GCC Administrator
744015dc2f
Daily bump.
...
From-SVN: r53283
2002-05-08 07:17:04 +00:00
Tom Tromey
5643bb97e4
* gjavah.c (throwable_p): Use xstrdup, not strdup.
...
From-SVN: r53279
2002-05-08 04:51:50 +00:00
Alexandre Oliva
6706f1167e
configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at script entry, and set LD to it when configuring multilibs.
...
* configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
script entry, and set LD to it when configuring multilibs.
* configure: Rebuilt.
From-SVN: r53278
2002-05-08 04:38:00 +00:00
Kazu Hirata
9cabb1d829
* toplev.c: Fix formatting.
...
From-SVN: r53276
2002-05-08 02:05:00 +00:00
Tom Tromey
6b9b5de22a
re PR java/1200 (gcjh -jni doesn't respect class hierarchy)
...
Fix for PR java/1200:
* gjavah.c (throwable_p): New function.
(decode_signature_piece): Use it. A `WeakReference' isn't the
same as a `jweak'.
Include hashtab.h.
(gcjh_streq): New function.
From-SVN: r53275
2002-05-08 01:41:41 +00:00
David S. Miller
db84f1bded
Add forgotten changelog entry.
...
From-SVN: r53273
2002-05-07 17:00:17 -07:00
Janis Johnson
4c76f8561e
config.in (ENABLE_RTL_FLAG_CHECKING): New.
...
* config.in (ENABLE_RTL_FLAG_CHECKING): New.
* configure.in (ac_rtlflag_checking): New.
* doc/install.texi (--enable-checking): Document RTL flag checking.
* configure: Regenerated.
From-SVN: r53272
2002-05-07 22:52:19 +00:00
Neil Booth
44a147ad2e
c-common.c (c_common_init): Set options->unsigned_wchar.
...
* c-common.c (c_common_init): Set options->unsigned_wchar.
* cppinit.c (cpp_create_reader): Default unsigned_wchar,
group target dependencies.
(init_builtins, cpp_handle_option): Update.
* cpplex.c (cpp_interpret_charconst): Update.
* cpplib.h (struct cpp_options): Add unsigned_wchar, rename
signed_char to unsigned_char, group target dependencies.
* defaults.h (WCHAR_UNSIGNED): Remove.
* system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
config:
* freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
doc:
* tm.texi: Remove MAX_CHAR_TYPE_SIZE.
From-SVN: r53271
2002-05-07 21:07:24 +00:00
Mark Mitchell
522e3d2226
configure.in: Add support for WindISS.
...
* configure.in: Add support for WindISS.
* configure: Regenerated.
* configure.target: Add support for WindISS.
* config/os/windiss/bits/ctype_base.h: New file.
* config/os/windiss/bits/ctype_inline.h: Likewise.
* config/os/windiss/bits/ctype_noninline.h: Likewise.
* config/os/windiss/bits/os_defines.h: Likewise.
From-SVN: r53269
2002-05-07 20:43:10 +00:00
Mark Mitchell
e9a6ff0c70
*** empty log message ***
...
From-SVN: r53268
2002-05-07 20:26:01 +00:00
Mark Mitchell
cace4f938d
inclhack.def (windiss_math1): New fix.
...
* fixinc/inclhack.def (windiss_math1): New fix.
(windiss_math2): Likewise.
(windiss_valist): Likewise.
* fixinc/fixincl.x: Regenerated.
From-SVN: r53267
2002-05-07 20:17:24 +00:00
Andreas Jaeger
e2ff6ceeae
genautomata.c (output_internal_min_issue_delay_func): Add ATTRIBUTE_UNUSED to avoid warning with empty dfa.
...
* genautomata.c (output_internal_min_issue_delay_func): Add
ATTRIBUTE_UNUSED to avoid warning with empty dfa.
(output_internal_trans_func): Likewise.
From-SVN: r53266
2002-05-07 21:07:46 +02:00
Tom Tromey
5d243e08b8
* java/lang/natString.cc (unintern): Fixed typo.
...
From-SVN: r53265
2002-05-07 19:07:07 +00:00
Mark Mitchell
deae2ed9a8
configure.in (AC_TYPE_PID_T): Use it.
...
* configure.in (AC_TYPE_PID_T): Use it.
* configure: Regenerated.
* getruntime.c: Include <sys/types.h>.
* waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
From-SVN: r53264
2002-05-07 18:50:53 +00:00
Andreas Jaeger
2c7e9098fb
* parse.y (finish_for_loop): Fix if statement.
...
From-SVN: r53263
2002-05-07 20:42:50 +02:00
Jeff Law
bdad4be519
pa.c (hppa_profile_hook): Use force_reg to get the address of the profile hook into an appropriate pseudo...
...
* pa.c (hppa_profile_hook): Use force_reg to get the address
of the profile hook into an appropriate pseudo register.
From-SVN: r53260
2002-05-07 11:03:37 -06:00
Jan Hubicka
18aed4ab20
* target.h (FFETARGET_32bit_longs): Undefine for x86-64.
...
From-SVN: r53259
2002-05-07 18:29:02 +02:00
Mark Mitchell
a1ffecd9e2
sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
...
* config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
(LINK_START_SPEC): Handle it.
(LINK_OS_SPEC): Likewise.
(CPP_SPEC): Likewise.
(STARTFILE_SPEC): Likewise.
(LIB_SPEC): Likewise.
(ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
all platforms.
(CRTSAVRES_DEFAULT_SPEC): New macro.
(LIB_WINDISS_SPEC): New macro.
(CPP_OS_WINDISS_SPEC): Likewise.
(STARTFILE_WINDISS_SPEC): Likewise.
(ENDFILE_WINDISS_SPEC): Likewise.
(LINK_START_WINDISS_SPEC): Likewise.
(LINK_OS_WINDISS_SPEC): Likewise.
* config/rs6000/windiss.h: New file.
From-SVN: r53257
2002-05-07 14:42:29 +00:00
Aldy Hernandez
df966bffc0
rs6000.c (bdesc_2arg): Fix vmax typos.
...
2002-05-07 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
From-SVN: r53254
2002-05-07 08:04:31 +00:00
GCC Administrator
ac8c66f3ce
Daily bump.
...
From-SVN: r53253
2002-05-07 07:17:44 +00:00
Richard Henderson
818c0c9493
re PR c++/6212 (g++ testsuite EH regressions for irix6 -mabi=64)
...
PR c++/6212
* expr.c (highest_pow2_factor_for_type): New.
(expand_assignment): Use it.
From-SVN: r53249
2002-05-06 22:44:26 -07:00
Tom Tromey
486e8c0cd3
re PR java/5941 (incorrect "Unreachable statement" error)
...
Fix for PR java/5941:
* parse.y (finish_for_loop): Set SUPPRESS_UNREACHABLE_ERROR for
loop update expression.
(java_complete_lhs): Use SUPPRESS_UNREACHABLE_ERROR.
* java-tree.h (SUPPRESS_UNREACHABLE_ERROR): New macro.
From-SVN: r53247
2002-05-07 03:32:01 +00:00
Aldy Hernandez
61e0b50fd7
rs6000.md ("altivec_mtvscr"): Change to unspec_volatile.
...
2002-05-06 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
unspec_volatile.
("altivec_mfvscr"): Same.
From-SVN: r53246
2002-05-07 02:48:06 +00:00
Janis Johnson
5a63e06940
rtl.h (struct rtx_def): Update comments.
...
* rtl.h (struct rtx_def): Update comments.
(RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
(RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
RTL_FLAG_CHECK macros with list of expected RTL codes.
* rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
(rtl_check_failed_flag): New.
* reload1.c (reload): Use REG macro before changing rtx to MEM.
(reload_cse_noop_set_p): Check rtx code before using access macro.
* config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
before using access macro.
From-SVN: r53245
2002-05-07 00:18:48 +00:00
Janis Johnson
4afe395245
* doc/rtl.texi (Flags): Update to reflect current usage.
...
From-SVN: r53242
2002-05-06 23:33:10 +00:00
Roger Sayle
1f77b5da98
re PR rtl-optimization/3995 (i386 optimisation: joining tests)
...
PR opt/3995
* fold-const.c (sign_bit_p): New function.
(fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
(A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
Reapply fold when converting (A & C) == C into (A & C) != 0.
(fold_binary_op_with_conditional_arg): Fix typo in comment.
testsuite/
* gcc.c-torture/execute/20020506-1.c: New test case.
From-SVN: r53241
2002-05-06 22:59:38 +00:00
Neil Booth
a5a49440f7
c-common.c (warn_multichar): New.
...
* c-common.c (warn_multichar): New.
(c_common_init): Set CPP's warn_multichar.
* c-common.h (warn_multichar): New.
* c-decl.c (warn_multichar): Remove.
* c-lex.c (lex_charconst): Update.
* c-tree.h (warn_multichar): Remove.
* cppexp.c (eval_token): Sign-extend charconst value.
* cppinit.c (cpp_create_reader): Set warn_multichar.
* cpplex.c (cpp_interpret_charconst): Don't sign-extend
each character. Update prototype. Sign-extend the result.
* cpplib.h: Fix conditions.
(struct cpp_options): Add new warning flag.
(cpp_interpret_charconst): Update prototype.
cp:
* Make-lang.in (decl2.o): Update.
* cp-tree.h (warn_multichar): Remove.
* decl2.c: Include c-common.h.
(warn_multichar): Remove.
doc:
* cpp.texi: Update documentation.
testsuite:
* gcc.dg/cpp/charconst-3.c: Correct tests accordingly.
From-SVN: r53240
2002-05-06 22:53:10 +00:00
Tim Josling
d7ee9f9fa7
Added Tim Josling to MAINTAINERS file.
...
Added Tim Josling to MAINTAINERS file. Fixed various treelang copyrights. Fix
broken treelang build resulting from changes to c-common.c.
From-SVN: r53239
2002-05-06 21:57:48 +00:00
David S. Miller
8d8563aeba
sparc.md (shift insns): Do not mask off second operand...
...
2002-05-06 David S. Miller <davem@redhat.com>
* config/sparc/sparc.md (shift insns): Do not mask off
second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
take care of it.
From-SVN: r53238
2002-05-06 14:31:56 -07:00
Loren J. Rittle
97320a3f23
ltmain.sh: Detect and handle object name conflicts while piecewise linking a static library.
...
* ltmain.sh: Detect and handle object name conflicts
while piecewise linking a static library.
From-SVN: r53237
2002-05-06 21:26:49 +00:00
Paolo Carlini
b562382902
Test all the facets for the temporary "C" locale switch issue.
...
2002-05-06 Paolo Carlini <pcarlini@unitus.it>
Test all the facets for the temporary "C" locale switch issue.
* testsuite/22_locale/codecvt_members_char_char.cc: Add test03.
* testsuite/22_locale/codecvt_members_wchar_t_char.cc: Likewise.
* testsuite/22_locale/collate_members_char.cc: Add test04.
* testsuite/22_locale/collate_members_wchar_t.cc: Likewise.
* testsuite/22_locale/ctype_members_char.cc: Add test05.
* testsuite/22_locale/ctype_members_wchar_t.cc: Add test04.
* testsuite/22_locale/messages_members_char.cc: Add test03.
* testsuite/22_locale/money_get_members_char.cc: Add test08.
* testsuite/22_locale/money_get_members_wchar_t.cc: Likewise.
* testsuite/22_locale/money_put_members_char.cc: Add test07.
* testsuite/22_locale/money_put_members_wchar_t.cc: Likewise.
* testsuite/22_locale/moneypunct_members_char.cc: Add test03.
* testsuite/22_locale/moneypunct_members_wchar_t.cc: Likewise.
* testsuite/22_locale/num_get_members_char.cc: Add test06.
* testsuite/22_locale/num_get_members_wchar_t.cc: Likewise.
* testsuite/22_locale/numpunct_members_char.cc: Add test03.
* testsuite/22_locale/numpunct_members_wchar_t.cc: Likewise.
* testsuite/22_locale/time_get_members_char.cc: Add test08.
* testsuite/22_locale/time_get_members_wchar_t.cc: Likewise.
* testsuite/22_locale/time_put_members_char.cc: Add test04.
* testsuite/22_locale/time_put_members_wchar_t.cc: Likewise.
* testsuite/22_locale/num_put_members_char.cc (test04): Add comment.
* testsuite/22_locale/num_put_members_wchar_t.cc (test04): Likewise.
From-SVN: r53236
2002-05-06 21:12:15 +00:00
Vladimir Makarov
83e0be551c
genautomata.c (form_the_same_automaton_unit_lists_from_regexp): Fix typo in usage of allof instead of unit.
...
2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
* genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
Fix typo in usage of allof instead of unit.
From-SVN: r53235
2002-05-06 20:14:32 +00:00
Richard Henderson
688ec71856
recog.c (if_test_bypass_p): Accept multiple set insns for OUT, and any jump or call for IN.
...
* recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
and any jump or call for IN.
From-SVN: r53234
2002-05-06 13:08:30 -07:00
Bernd Schmidt
f6536266dd
Fix problems compiling xmmintrin.h with only -msse.
...
From-SVN: r53230
2002-05-06 18:17:08 +00:00
Roger Sayle
0316d49bf1
fold-const.c (lshift-double): Cast the high word to an unsigned HOST_WIDE_INT when...
...
* fold-const.c (lshift-double): Cast the high word to an unsigned
HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
(div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
avoid compiler warning. (fold): Remove redundant code from
BIT_AND_EXPR as integer operands are canonicalized to be arg1.
From-SVN: r53228
2002-05-06 16:59:18 +00:00
Jeff Law
5d50fab314
pa-protos.h (hppa_fpstore_bypass_p): Declare.
...
* pa-protos.h (hppa_fpstore_bypass_p): Declare.
* pa.c (pa_adjust_cost): Remove all true dependency cost
adjustments. Also remove support for non-DFA scheduling.
* pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
to adjust true dependency costs. Update various comments.
(7100lc, 7200, 7300 scheduling): Simplify by combining the
FP ALU & MPY units into a single unit.
From-SVN: r53227
2002-05-06 10:53:34 -06:00