Alexandre Oliva
cb51ecd2a5
sh.c (reg_class_from_letter): Assign `k' to SIBCALL_REGS.
...
* config/sh/sh.c (reg_class_from_letter): Assign `k' to SIBCALL_REGS.
(machine_dependent_reorg): Split all insns.
* config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Compute
reg_class_contents[SIBCALL_REGS].
(reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add SIBCALL_REGS.
* config/sh/sh.md (calli_pcrel, call_pcrel, call_valuei_pcrel,
call_value_pcrel, call, call_value, sibcall): Match even when
not optimizing.
(sibcalli_pcrel, sibcall_pcrel): Likewise. Use constraint `k'
for call address.
(sibcalli): Likewise.
From-SVN: r37934
2000-12-01 23:26:19 +00:00
Joseph Myers
4d80892796
c-common.c (warn_format, [...]): Define.
...
* c-common.c (warn_format, warn_format_y2k,
warn_format_extra_args, warn_format_nonliteral): Define.
(check_format_info): Check warn_format_nonliteral and
warn_format_extra_args.
(check_format_info_main): Check warn_format_y2k.
(set_Wformat): New function.
* c-common.h (warn_format_y2k, warn_format_extra_args,
warn_format_nonliteral, set_Wformat): Declare.
* c-decl.c (warn_format): Remove definition.
(c_decode_option): Handle -Wformat-nonliteral,
-Wno-format-extra-args and -Wno-format-y2k, and negated versions.
Use set_Wformat.
* invoke.texi: Document these new options and -Wformat=2.
* toplev.c (documented_lang_options): Add these new options.
cp:
* decl2.c (warn_format): Remove definition.
(lang_decode_option): Handle -Wformat-nonliteral,
-Wno-format-extra-args and -Wno-format-y2k. Use set_Wformat.
testsuite:
* gcc.dg/format-no-exargs-1.c, gcc.dg/format-no-y2k-1.c,
gcc.dg/format-nonlit-1.c, gcc.dg/format-nonlit-2.c: New tests.
From-SVN: r37933
2000-12-01 22:43:33 +00:00
Joseph Myers
e78f4a977a
builtins.def (BUILT_IN_IMAXABS): Add.
...
* builtins.def (BUILT_IN_IMAXABS): Add.
* builtins.c (expand_builtin): Also abort on BUILT_IN_IMAXABS.
* c-common.c (c_common_nodes_and_builtins): Create builtin
functions __builtin_imaxabs, and plain imaxabs unless
flag_no_nonansi_builtin outside C99 mode.
(expand_tree_builtin): Handle BUILT_IN_IMAXABS.
* extend.texi: Document builtin imaxabs.
From-SVN: r37932
2000-12-01 22:35:50 +00:00
Joseph Myers
5fd8e53691
c-common.c: Include "defaults.h".
...
* c-common.c: Include "defaults.h".
(WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Define.
(c_common_nodes_and_builtins): Create string_type_node,
const_string_type_node, wint_type_node, intmax_type_node,
uintmax_type_node, default_function_type, ptrdiff_type_node and
unsigned_ptrdiff_type_node.
* c-common.h (identifier_global_value): Declare.
* c-decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
(init_decl_processing): Don't create string_type_node,
const_string_type_node, wint_type_node, intmax_type_node,
uintmax_type_node, default_function_type, ptrdiff_type_node and
unsigned_ptrdiff_type_node.
(identifier_global_value): New function.
cp:
* decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
(init_decl_processing): Don't create string_type_node,
const_string_type_node, wint_type_node, intmax_type_node,
uintmax_type_node, default_function_type, ptrdiff_type_node and
unsigned_ptrdiff_type_node. Adjust position of call to
c_common_nodes_and_builtins.
(identifier_global_value): New function.
From-SVN: r37931
2000-12-01 22:25:43 +00:00
Tom Tromey
239b8e589d
Really reverted erroneous checkin
...
From-SVN: r37930
2000-12-01 22:11:00 +00:00
Tom Tromey
25c7e48745
Reverted erroneous checkin
...
From-SVN: r37929
2000-12-01 22:04:45 +00:00
Neil Booth
92e092fe12
20000720-1.S: Remove duplicate testcase.
...
* gcc.dg/cpp/20000720-1.S: Remove duplicate testcase.
* gcc.dg/cpp/poison.c: Update.
* gcc.dg/cpp/spacing1.c: New testcase for all spacing issues.
From-SVN: r37928
2000-12-01 22:03:57 +00:00
Neil Booth
8d9e9a083d
cppinit.c (initialize): Forgotten prototype.
...
* cppinit.c (initialize): Forgotten prototype.
* cpplex.c (_cpp_lex_token): Loop until not skipping.
Always clear PREV_WHITE upon meeting a new line.
* cpplib.c (end_directive): Set pfile->skipping after
skip_rest_of_line.
* cpplib.h (cpp_reader): Remove macro_pos.
* cppmacro.c (cpp_get_line): Don't do anything special inside
macros.
(parse_arg): Add PREV_WHITE if a token appears after new lines.
(funlike_invocation_p): Save and restore the output position
over a successful check for a '('.
(enter_macro_context): Delete uses of macro_pos.
(cpp_get_token): Don't use pfile->skipping.
From-SVN: r37927
2000-12-01 22:01:10 +00:00
Tom Tromey
a717799c52
more work
...
From-SVN: r37926
2000-12-01 21:58:34 +00:00
Toon Moene
042db57ecf
20001201.f: New test.
...
2000-12-01 Toon Moene <toon@moene.indiv.nluug.nl>
* g77.f-torture/execute/20001201.f: New test.
From-SVN: r37925
2000-12-01 21:25:11 +00:00
Phil Edwards
c1428b5362
[multiple changes]
...
2000-12-01 Phil Edwards <pme@sources.redhat.com>
* mkcheck.in: Count static and shared results separately.
2000-12-01 Loren J. Rittle <ljrittle@acm.org>
* mkcheck.in: Correct typo.
From-SVN: r37924
2000-12-01 20:55:44 +00:00
Phil Edwards
c4765d18f2
diagnostic.c: Fix typos in comments.
...
2000-12-01 Phil Edwards <pme@sources.redhat.com>
* diagnostic.c: Fix typos in comments.
* diagnostic.h: Likewise.
From-SVN: r37923
2000-12-01 19:31:01 +00:00
Phil Edwards
815d683eb8
rtl.texi (Machine Modes): Document BImode and OImode.
...
2000-11-30 Phil Edwards <pme@sources.redhat.com>
* rtl.texi (Machine Modes): Document BImode and OImode.
From-SVN: r37922
2000-12-01 19:29:26 +00:00
Joseph Myers
ae24178a97
gcc.c (default_compilers): Add suffixes .mi, .cp, .ii, .FOR and .FPP.
...
* gcc.c (default_compilers): Add suffixes .mi, .cp, .ii, .FOR and
.FPP.
From-SVN: r37921
2000-12-01 19:23:17 +00:00
Joseph Myers
c7b828331c
c-decl.c (grokdeclarator): If pedantic, warn about arrays with incomplete element type.
...
* c-decl.c (grokdeclarator): If pedantic, warn about arrays with
incomplete element type.
(grokparms): Before checking for incomplete parameter type, check
the type isn't error_mark_node.
testsuite:
* gcc.dg/c99-array-nonobj-1.c: No longer XFAIL.
From-SVN: r37920
2000-12-01 19:21:44 +00:00
Warren Levy
21ac293b0e
Makefile.am: Added entries for new java.sql modules.
...
* Makefile.am: Added entries for new java.sql modules.
* Makefile.in: Rebuilt.
From-SVN: r37919
2000-12-01 18:34:28 +00:00
Jakub Jelinek
ab93735752
builtins.c (target_char_cast): New function.
...
* builtins.c (target_char_cast): New function.
(expand_builtin_strchr): Use it.
(expand_builtin_strrchr): Use it.
(builtin_memset_read_str): New function.
(expand_builtin_memset): Use target_char_cast.
Try to optimize memset with second argument non-zero using
store_by_pieces.
* gcc.c-torture/execute/string-opt-5.c: Add some memset tests.
From-SVN: r37918
2000-12-01 18:53:07 +01:00
Marek Michalkiewicz
3a69a7d58e
install.texi (avr): Replace incomplete list of supported MCU types with a link to the current one ...
...
* install.texi (avr): Replace incomplete list of supported MCU
types with a link to the current one ...
* invoke.texi (AVR Options): ... here. Update -mmcu= to list
all supported MCU types. Document -minit-stack= default.
Document new options -mno-tablejump, -mtiny-stack.
* md.texi (AVR family): Fix typo in 'w' constraint letter
description. Document 'q'. Update 'O'.
From-SVN: r37917
2000-12-01 20:49:05 +03:00
Bernd Schmidt
c02cad8fb9
Add a frontend function for reload_reg_free_for_value_p; need to check all
...
registers in a multi-reg value.
From-SVN: r37916
2000-12-01 16:34:09 +00:00
Bernd Schmidt
53895717b4
Further tweak cant_combine_insn_p
...
From-SVN: r37915
2000-12-01 12:45:00 +00:00
Nathan Sidwell
13f9714bb6
call.c (standard_conversion): Reject pointer to member conversions from ambiguous, inaccessible or virtual bases.
...
cp:
* call.c (standard_conversion): Reject pointer to member
conversions from ambiguous, inaccessible or virtual bases.
* typeck.c (build_static_cast): Don't check pointers to members
specially.
testsuite:
* g++.old-deja/g++.other/cast6.C: New test.
From-SVN: r37914
2000-12-01 11:52:33 +00:00
Warren Levy
89f99caaab
mauve-libgcj: Turned on JDK1.2 and turned off tests for classes that aren't quite 1.2...
...
* mauve-libgcj: Turned on JDK1.2 and turned off tests for classes
that aren't quite 1.2 compatible yet.
From-SVN: r37913
2000-12-01 10:04:02 +00:00
Jeff Law
b80ebb3b5e
Daily bump.
...
From-SVN: r37912
2000-12-01 01:45:07 -07:00
Alexandre Oliva
3d422cb195
sh.c (shiftcosts): Don't get INTVAL before testing whether X is a CONST_INT.
...
* config/sh/sh.c (shiftcosts): Don't get INTVAL before testing
whether X is a CONST_INT.
(addsubcosts): Likewise.
From-SVN: r37911
2000-12-01 03:29:02 +00:00
Alexandre Oliva
b927e8c720
Align value of UNSPECV_ALIGN
...
From-SVN: r37910
2000-12-01 03:22:26 +00:00
Alexandre Oliva
f00018dd99
sh.h (OUTPUT_ADDR_CONST_EXTRA): Use INTVAL instead of mis-used XINT.
...
* config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA): Use INTVAL instead of
mis-used XINT.
(ARG_POINTER_REGNUM): Set to AP_REG.
From-SVN: r37909
2000-12-01 02:29:34 +00:00
Warren Levy
2f4671099a
Fixed ChangeLog entry to be path specific.
...
From-SVN: r37908
2000-12-01 02:04:23 +00:00
Alexandre Oliva
ecfdeaeb34
sh.md (fpu_switch0, [...]): Only match on TARGET_SH4.
...
* config/sh/sh.md (fpu_switch0, fpu_switch1, movpsi, fpu_switch,
splits): Only match on TARGET_SH4.
From-SVN: r37907
2000-12-01 02:03:24 +00:00
Warren Levy
6934615b97
Array.java: New file from classpath.
...
* Array.java: New file from classpath.
* BatchUpdateException.java: Ditto.
* Blob.java: Ditto.
* Clob.java: Ditto.
* Ref.java: Ditto.
* SQLData.java: Ditto.
* SQLInput.java: Ditto.
* SQLOutput.java: Ditto.
* Struct.java: Ditto.
* CallableStatement.java: Merged file from claspath.
* Connection.java: Ditto.
* DataTruncation.java: Ditto.
* DatabaseMetaData.java: Ditto.
* DriverManager.java: Ditto.
* PreparedStatement.java: Ditto.
* ResultSet.java: Ditto.
* ResultSetMetaData.java: Ditto.
* SQLException.java: Ditto.
* SQLWarning.java: Ditto.
* Statement.java: Ditto.
* Types.java: Ditto.
From-SVN: r37906
2000-12-01 01:48:34 +00:00
Alexandre Oliva
95ac07b0f4
combine.c (try_combine): Disregard USEs when updating LOG_LINKS of subsequent insns.
...
* combine.c (try_combine): Disregard USEs when updating LOG_LINKS
of subsequent insns.
From-SVN: r37905
2000-12-01 01:08:40 +00:00
Richard Henderson
f272085897
alpha.h (ASM_OUTPUT_MI_THUNK): Disable.
...
* config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Disable.
* config/alpha/alpha32.h (ASM_OUTPUT_MI_THUNK): Likewise.
From-SVN: r37904
2000-11-30 16:32:12 -08:00
Richard Henderson
ef7d91cd5e
elf.h (ASM_OUTPUT_SECTION_NAME): Copy elfos.h defn.
...
* config/alpha/elf.h (ASM_OUTPUT_SECTION_NAME): Copy elfos.h defn.
(DO_SELECT_SECTION): New.
(SELECT_SECTION): Use it.
(UNIQUE_SECTION_P): New.
(UNIQUE_SECTION): New.
From-SVN: r37903
2000-11-30 16:29:57 -08:00
Geoffrey Keating
be10afdfe8
* gcc.c-torture/execute/20001130-2.c: New testcase.
...
From-SVN: r37902
2000-12-01 00:15:29 +00:00
Gabriel Dos Reis
a30dbb3960
cmath.cc: Remove.
...
* src/cmath.cc: Remove.
* src/Makefile.am (c_base_headers): Add bits/cmath.tcc.
(sources): Remove cmath.cc
* src/Makefile.in: Regenerate.
* include/c/bits/std_cmath.h (__cmath_power<>): Declare.
(__cmath_abs<>): New function.
(abs, fabs): Use __cmath_abs when no direct support is available.
(__pow_helper<>): New function.
(pow): Define here. Use __pow_helper<>.
* include/c/bits/cmath.tcc: New file.
From-SVN: r37901
2000-11-30 23:44:32 +00:00
Alexandre Oliva
29ced803f0
* c-common.c (status_warning) [! ANSI_PROTOTYPES]: Load status
...
from va_list before using it.
From-SVN: r37900
2000-11-30 23:00:57 +00:00
Michael Matz
25e4379fe5
flow.c (make_edge): Early out, if no flags to set.
...
* flow.c (make_edge): Early out, if no flags to set.
(calculate_global_regs_live): Clear out garbage only when necessary.
* simplify-rtx.c (varray_type used_regs): New.
(clear_table): Use it to only clear necessary items.
(cselib_lookup, cselib_record_set): Remember newly set items.
(cselib_update_varray_sizes, cselib_init): Initialize and grow
used_regs.
* local-alloc.c (update_equiv_regs): New local `cleared_regs'.
Move clearing of dead regs out of insn-loop.
From-SVN: r37899
2000-11-30 13:40:33 -08:00
Richard Henderson
41c3953302
calls.c (expand_call): Emit queued insns before creating the tail recursion sequence.
...
* calls.c (expand_call): Emit queued insns before creating
the tail recursion sequence.
* gcc.c-torture/execute/20001130-1.c: New test.
From-SVN: r37898
2000-11-30 12:15:13 -08:00
Nathan Sidwell
31b1b95769
method.c (do_build_copy_constructor): Preserve cv qualifications when accessing source object members.
...
cp:
* method.c (do_build_copy_constructor): Preserve cv
qualifications when accessing source object members.
(do_build_assign_ref): Likewise. Remove separate diagnostics for
unnamed fields.
testsuite:
* g++.old-deja/g++.other/op3.C: New test.
From-SVN: r37896
2000-11-30 16:51:54 +00:00
J. David Anglin
039df8c7c7
prevent dual double definition protection
...
Co-Authored-By: Bruce Korb <bkorb@gnu.org>
From-SVN: r37895
2000-11-30 16:43:00 +00:00
Loren J. Rittle
42cfed3714
Explicitly state srcdir for fixincl.x references - Loren J. Rittle
...
From-SVN: r37894
2000-11-30 16:30:05 +00:00
Nathan Sidwell
717e3f7376
method.c (do_build_assign_ref): Construct appropriately CV-qualified base reference.
...
cp:
* method.c (do_build_assign_ref): Construct appropriately
CV-qualified base reference. Don't allow const casts in base
conversion.
testsuite:
* g++.old-deja/g++.other/op2.C: New test.
From-SVN: r37893
2000-11-30 16:03:16 +00:00
Gerald Pfeifer
a6bb9efada
* README.FRESCO: Remove obsolete file.
...
From-SVN: r37873
2000-11-30 11:09:43 +00:00
Nathan Sidwell
2c92b94d0f
call.c (build_over_call): Use VOID_TYPE_P.
...
cp:
* call.c (build_over_call): Use VOID_TYPE_P. Don't die on
incomplete return type.
testsuite:
* g++.old-deja/g++.other/crash38.C: New test.
From-SVN: r37872
2000-11-30 09:36:29 +00:00
Jeff Law
47f18b4f13
Daily bump.
...
From-SVN: r37871
2000-11-30 01:45:07 -07:00
Jeff Law
255b8a498d
configure.in: Reorganize handling of *-*-gnu*, to share target specific make details with Linux.
...
* configure.in: Reorganize handling of *-*-gnu*, to share target
specific make details with Linux. Update comments to clarify
the distinction between GNU/Linux and GNU/Hurd.
* config/t-gnu (LIBGCC1, CROSS_LIBGCC1, CRTSTUFF_T_CFLAGS,
TARGET_LIBGCC2_CFLAGS): Remove. We now use the settings from
config/t-linux for the Hurd.
From-SVN: r37870
2000-11-30 01:30:26 -07:00
Jeffrey A Law
e3e1101af0
POTFILES.in: Move divmod routines from config/mn10200 to config/ Add dominance.c
...
* POTFILES.in: Move divmod routines from config/mn10200 to config/
Add dominance.c
From-SVN: r37869
2000-11-30 01:27:09 -07:00
Stephane Carrez
75273d0832
udivmod.c, [...]: Moved from here.
...
* config/mn10200/udivmod.c, config/mn10200/divmod.c,
config/mn10200/udivmodsi4.c: Moved from here.
* config/udivmod.c, config/divmod.c, config/udivmodsi4.c: To here.
* config/mn10200/t-mn10200 (LIB2FUNCS_EXTRA): Use the generic
C division functions.
* config/m68hc11/t-m68hc11-gas (LIB2FUNCS_EXTRA): Likewise.
From-SVN: r37868
2000-11-30 01:25:59 -07:00
Jeffrey A Law
15c2086a04
pa.md (conditional moves): Avoid holes in operand list.
...
* pa.md (conditional moves): Avoid holes in operand list.
(mod, umod patterns): Similarly.
(variable extract/shift patterns): Similarly.
From-SVN: r37867
2000-11-30 01:15:41 -07:00
Neil Booth
9105f6718c
objc-act.c (lang_init, [...]): Remove redundant code, assuming doing_objc_thang is true.
...
* objc/objc-act.c (lang_init, finish_file, maybe_objc_comptypes,
maybe_objc_check_decl, build_objc_string_object,
objc_declare_alias, objc_declare_class, build_message_expr,
build_protocol_expr, build_selector_expr, build_encode_expr,
get_class_ivars, start_class, start_protocol): Remove
redundant code, assuming doing_objc_thang is true.
From-SVN: r37866
2000-11-30 08:11:41 +00:00
John David Anglin
1f80ea952d
pa.c (restore_unscaled_index_insn_codes): Delete procedure.
...
* pa.c (restore_unscaled_index_insn_codes): Delete procedure.
(record_unscaled_index_insn_codes): Likewise.
(unscaled_index_insn_codes): Delete.
(max_unscaled_index_insn_codes_uid): Delete.
(output_function_prologue, output_function_epilogue, pa_reorg):
Don't use the unscaled index insn hack.
From-SVN: r37865
2000-11-29 23:41:29 -07:00