2000-08-22 Steven King <sxking@uswest.net>
* config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
machinery.
(LDBL_MAX): Same here.
From-SVN: r35883
* c-common.c (check_format_info): Give the 'some locales' warning
for strftime %Ey rather than the unconditional 'only last 2 digits
of year' one.
testsuite:
* gcc.dg/c90-strftime-2.c, gcc.dg/c99-strftime-1.c,
gcc.dg/c99-strftime-2.c: New tests.
From-SVN: r35874
2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
* diagnostic.h (report_problematic_module): Declare.
* diagnostic.c (report_problematic_module): New function.
(report_error_function): Tweak.
From-SVN: r35866
2000-08-21 Mark Wielaard <mark@klomp.org>
* Makefile.in: Rebuilt.
* Makefile.am (java/lang/reflect/Constructor.h): Declare Class as
a `friend class'.
(java/lang/reflect/Field.h): Likewise.
(java/lang/reflect/Method.h): Likewise.
(gnu/gcj/runtime/VMClassLoader.h): Declare ClassLoader as a
`friend class'.
From-SVN: r35863
* unroll.c (loop_find_equiv_value): If ret is modified between
insn and loop_start, ret might not be equivalent to reg.
* gcc.c-torture/execute/20000819-1.x: Remove.
From-SVN: r35857
* c-common.c (init_dollar_format_checking,
maybe_read_dollar_number, finish_dollar_format_checking): New
functions.
(dollar_arguments_used, dollar_arguments_count,
dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
New variables.
(check_format_info): Support $ formats for scanf and printf width
and precision. Always increment format_chars to advance past the
'*' of precision, not just when the format parameters are
available to check.
testsuite:
* gcc.dg/c90-printf-3.c, gcc.dg/c90-scanf-2.c,
gcc.dg/c90-scanf-3.c, gcc.dg/c90-scanf-4.c,
gcc.dg/c90-strftime-1.c, gcc.dg/c99-printf-3.c,
gcc.dg/c99-scanf-1.c, gcc.dg/c99-scanf-2.c, gcc.dg/c99-scanf-3.c,
gcc.dg/format-xopen-1.c: New tests.
From-SVN: r35856
* gcc.c (do_spec_1): Implement %j spec flag.
Remove dead comment.
* gcc.texi (The Configuration File): Document HOST_BIT_BUCKET.
* system.h (HOST_BIT_BUCKET): Default to "/dev/null".
* config/i386/xm-dos.h (HOST_BIT_BUCKET): Define as "NUL".
* config/i386/xm-os2.h, config/winnt/winnt.h: Likewise.
* protoize.c (munge_compile_params): Use HOST_BIT_BUCKET (if
writable) instead of hardcoded value.
* toplev.c (compile_file): Output to a file even if -fsyntax-only.
* gcc.c, config/i386/xm-dos.h, config/i386/xm-os2.h: Kill
MKTEMP_EACH_FILE.
* gcc.c (cc1_options): Do not process -o or
run the assembler if -fsyntax-only.
From-SVN: r35849
* mips/linux.h (LINK_SPEC): Use %(endian_spec).
* mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
and linker_endian_spec to endian_spec.
(ENDIAN_SPEC): Add %{EB} and %{EL}.
(LINK_SPEC): Remove %{EB} and %{EL}.
(ASM_SPEC): Likewise. Use %(endian_spec).
From-SVN: r35844
* c-tree.h (flag_hosted): Move declaration from here...
* c-common.h (flag_hosted): ... to here.
(flag_noniso_default_format_attributes): New declaration.
* c-decl.c (flag_noniso_default_format_attributes): New variable.
(c_decode_option): Set it appropriately for options choosing
language standard variant.
* c-common.c (init_function_format_info): Only provide default
format attributes if flag_hosted. Only provide the gettext
formats if flag_noniso_default_format_attributes. Update
comments.
(check_format_info): Disable treatment of %a as a scanf flag in
C99 mode.
cp:
* decl.c (flag_hosted, flag_noniso_default_format_attributes): New
variables.
* decl2.c (lang_decode_option): Disable gettext attributes for
-ansi.
From-SVN: r35843
* c-common.c (scan_char_table): Add 'w' to flags for all formats
except 'n'.
(check_format_info): Set 'wide' for scanf format widths. Warn for
a zero scanf width. Make the check for writing into a constant
object at the first level of indirection; at later levels, warn if
any type qualifiers are encountered.
testsuite:
* gcc.dg/c90-scanf-1.c, gcc.dg/c94-scanf-1.c: New tests.
From-SVN: r35842
* reload.c (reload_inner_reg_of_subreg): New function broken out of
push_reload.
(push_reload): Use reload_inner_reg_of_subreg.
(combine_reloads): Do not combine reloads if the input reload
is a SUBREG in which the inner part will need reloading.
From-SVN: r35841
* gcc.c-torture/compile/20000606-1.c: New test.
* gcc.c-torture/compile/20000728-1.c: New test.
* gcc.c-torture/execute/20000801-1.c: New test.
* gcc.c-torture/execute/20000801-2.c: New test.
* gcc.c-torture/execute/20000819-1.c: New test.
* gcc.c-torture/execute/20000819-1.x: XFAIL.
* gcc.dg/20000629-1.c: New test.
* gcc.dg/20000724-1.c: New test.
* gcc.dg/20000807-1.c: New test.
From-SVN: r35834