Age | Commit message (Collapse) | Author | Files | Lines |
|
* tree.c (bot_manip): Check TREE_CONSTANT rather than
!TREE_SIDE_EFFECTS. Call break_out_target_exprs and
build_target_expr_with_type for the non-AGGR_INIT_EXPR case.
From-SVN: r36081
|
|
From-SVN: r36063
|
|
From-SVN: r36041
|
|
level.
* decl.c (pushdecl): Matching decls for local externs are found in
the current level. Propagate linkage information from previous
declarations.
From-SVN: r36011
|
|
From-SVN: r36010
|
|
In gcc:
2000-08-27 Geoff Keating <geoffk@cygnus.com>
* config/rs6000/rs6000.md (movdi_internal64+5): Make SUBREG-safe
by using gen_lowpart_common.
(movdi_internal64+6): Likewise.
In gcc/testsuite:
2000-08-27 Geoff Keating <geoffk@cygnus.com>
* gcc.c-torture/compile/20000825-1.c: New test.
From-SVN: r36005
|
|
From-SVN: r36000
|
|
* gcc.dg/cpp/tr-warn4.c: Remove unconstrained .* from
dg-warning regexps.
From-SVN: r35997
|
|
* c-common.c (time_char_table): Don't allow width and flags with
"z" format.
testsuite:
* gcc.dg/format-ext-3.c, gcc.dg/format-ext-4.c,
gcc.dg/format-ext-5.c: New tests.
From-SVN: r35984
|
|
From-SVN: r35983
|
|
* decl.c (grokfndecl): Require that `main' return an `int'.
* mangle.c (write_encoding): Don't mangle return types for
conversion functions.
From-SVN: r35972
|
|
* Makefile.in (C_AND_OBJC_OBJS): Remove c-iterate.o.
(c-iterate.o): Remove target.
* gcc/c-common.h (enum rid): Remove RID_ITERATOR.
* gcc/c-decl.c (init_decl_processing): Remove call to init_iterators.
(finish_decl): Don't handle iterators.
(grokdeclarator): Likewise.
* gcc/c-parse.gperf: Remove __iterator and __iterator__ keywords.
* gcc/c-gperf.h: Regenerated.
* gcc/c-iterate.c: Removed.
* gcc/c-lex.c (init_lex): Don't handle iterators.
* gcc/c-parse.in (primary): Remove pop_iterator_stack call.
(compstmt_primary_start): Remove push_iterator_stack call.
(stmt): Don't allow iterator statements. Replace iterator_expand
with expand_expr_stmt.
(all_iter_stmt): Remove.
(all_iter_stmt_simple): Likewise.
(all_iter_stmt_with_decl): Likewise.
* gcc/c-tree.h (ITERATOR_P): Remove.
(ITERATOR_BOUND_P): Likewise.
(init_iterators): Remove declaration.
(iterator_expand): Likewise.
(iterator_for_loop_start): Likewise.
(iterator_for_loop_end): Likewise.
(iterator_for_loop_record): Likewise.
(push_iterator_stack): Likewise.
(pop_iterator_stack): Likewise.
* gcc/c-typeck.c (decl_constant_value): Don't check ITERATOR_P.
(readonly_warning): Likewise.
* gcc/tree.h (ITERATOR_BOUND_P): Don't mention it.
* Make-lang.in (cc1chill): Don't depend on c-iterate.o.
* gcc.dg/noncompile/930622-2.c: Adjust error message.
From-SVN: r35967
|
|
From-SVN: r35959
|
|
* c-common.c (time_char_table): Don't allow width with %F.
(check_format_info): Don't allow "Z" length with scanf.
testsuite:
* gcc.dg/c99-scanf-2.c: Remove test for scanf "Z" length.
* gcc.dg/format-ext-2.c: New test.
From-SVN: r35940
|
|
From-SVN: r35935
|
|
* lib/old-dejagnu.exp: Also ignore "In member function" and
"At global scope".
From-SVN: r35934
|
|
From-SVN: r35933
|
|
From-SVN: r35932
|
|
* typeck.c (build_ptrmemfunc): Save the input pmf.
* method.c (process_modifiers): Use same_type_p.
From-SVN: r35930
|
|
From-SVN: r35924
|
|
From-SVN: r35923
|
|
* c-common.c (print_char_table): Allow 'I' flag with %d, %i and
%u.
(check_format_info): Support printf 'I' flag; warn about it with
-pedantic.
testsuite:
* gcc.dg/c99-printf-2.c, gcc.dg/format-xopen-1.c: Add some more
tests.
* gcc.dg/format-ext-1.c: New test.
From-SVN: r35917
|
|
* gcc.dg/cpp/tr-warn4.c, gcc.dg/cpp/tr-warn5.c,
gcc.dg/wtr-aggr-init-1.c, gcc.dg/wtr-escape-1.c,
gcc.dg/wtr-int-type-1.c, gcc.dg/wtr-static-1.c,
gcc.dg/wtr-strcat-1.c, gcc.dg/wtr-switch-1.c,
gcc.dg/wtr-unary-plus-1.c, gcc.dg/wtr-union-init-1.c: New tests.
From-SVN: r35913
|
|
From-SVN: r35881
|
|
From-SVN: r35880
|
|
%Ey rather than the unconditional...
* 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
|
|
From-SVN: r35872
|
|
loop_start, ret might not be equivalent to reg.
* 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
|
|
* 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
|
|
From-SVN: r35839
|
|
* 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
|
|
2000-08-20 Zack Weinberg <zack@wolery.cumb.org>
* cppinit.c (cpp_init): Set global flag when called.
(cpp_reader_init): Bomb out if cpp_init hasn't been called.
Sun Aug 20 01:41:35 MSD 2000 Dennis Chernoivanov <cdi@sparc.spb.su>
* cpplex.c (cpp_scan_buffer): Move `output_line_command' just
before `process_directive' so that newlines won't be missed
for directives.
(cpp_printf): Increment `print->lineno' when newline is emitted.
* cppmain.c (cb_ident): Likewise.
(cb_define): Likewise.
(cb_undef): Likewise.
(cb_include): Likewise.
(cb_def_pragma): Likewise.
(dump_macros_helper): Likewise.
* gcc.dg/cpp/pragma-1.c: New test.
* gcc.dg/cpp/pragma-2.c: New test.
From-SVN: r35825
|
|
* gcc.dg/cpp/lexstrng.c: Don't include string.h.
* gcc.dg/cpp/paste2.c: Don't include string.h. Prototype strcmp.
From-SVN: r35801
|
|
From-SVN: r35795
|
|
From-SVN: r35794
|
|
2000-08-18 Manfred Hollstein <manfredh@redhat.com>
* gcc.c-torture/execute/20000818-1.c: New test.
From-SVN: r35788
|
|
From-SVN: r35786
|
|
From-SVN: r35780
|
|
* g++.old-deja/g++.benjamin/13478.C: Mark candidate.
* g++.old-deja/g++.mike/net36.C: Mark candidate.
* g++.old-deja/g++.robertl/eb131.C: Mark candidate.
* g++.old-deja/g++.oliva/overload1.C: Remove XFAIL.
* g++.old-deja/g++.other/ptrmem7.C: New test.
* g++.old-deja/g++.pt/ptrmem10.C: New test.
From-SVN: r35778
|
|
From-SVN: r35776
|
|
* g++.old-deja/g++.pt/crash44.C: Remove XFAIL. Add ERROR.
* g++.old-deja/g++.pt/friend38.C: Remove XFAIL. Add extra test.
* g++.old-deja/g++.pt/friend45.C: New test.
* g++.old-deja/g++.other/friend8.C: New test.
From-SVN: r35754
|
|
From-SVN: r35740
|
|
* gcc.dg/c90-array-lval-2.c, gcc.dg/c90-const-expr-2.c,
gcc.dg/c99-array-lval-2.c, gcc.dg/c99-const-expr-2.c,
gcc.dg/c99-func-3.c, gcc.dg/c99-func-4.c: New tests.
From-SVN: r35728
|
|
From-SVN: r35673
|
|
* lib/c-torture.exp (c-torture): Make
compiler_conditional_xfail_data global.
* lib/f-torture.exp (f-torture): Add in torture_eval_before_compile,
compiler_conditional_xfail_data machinery.
(f-torture-execute): Likewise.
* g77.c-torture/compile/20000629-1.x: The test only fails on x86,
and only when unrolling loops.
From-SVN: r35669
|
|
* c-typeck.c (build_array_ref): Don't complain about non-lvalue
arrays in C99. Don't try to look at DECL_REGISTER of a
COMPONENT_REF. Don't complain twice about the same error.
In gcc/testsuite/:
* gcc.dg/c99-array-lval-1.c: The test on line 14 now passes.
From-SVN: r35666
|
|
* parse.y (template_arg): Add rule for template qualified with
global scope.
From-SVN: r35654
|
|
* decl2.c (add_function): Reorganize.
(arg_assoc): Do not consider function template decls.
From-SVN: r35653
|
|
* decl.c (lookup_name_real): Don't forget the TYPENAME_TYPE we're
looking inside.
From-SVN: r35650
|