aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2000-08-30tree.c (bot_manip): Check TREE_CONSTANT rather than !TREE_SIDE_EFFECTS.Jason Merrill1-0/+20
* 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
2000-08-30* lib/g++.exp: Support testing already-installed GCC.Alexandre Oliva2-1/+8
From-SVN: r36063
2000-08-29* wtr-label-1.c, wtr-suffix-1.c: New tests.Kaveh R. Ghazi3-0/+89
From-SVN: r36041
2000-08-27decl.c (pushdecl): Matching decls for local externs are found in the current ↵Jason Merrill1-0/+12
level. * decl.c (pushdecl): Matching decls for local externs are found in the current level. Propagate linkage information from previous declarations. From-SVN: r36011
2000-08-28* gcc.dg/return-type-2.c: New test.Kaveh R. Ghazi2-0/+51
From-SVN: r36010
2000-08-27In gcc: 2000-08-27 Geoff Keating <geoffk@cygnus.com>Geoff Keating2-0/+35
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
2000-08-26* gcc.dg/dwarf2-2.c: New test.Alexandre Oliva2-0/+22
From-SVN: r36000
2000-08-26tr-warn4.c: Remove unconstrained .* from dg-warning regexps.Zack Weinberg2-2/+7
* gcc.dg/cpp/tr-warn4.c: Remove unconstrained .* from dg-warning regexps. From-SVN: r35997
2000-08-25c-common.c (time_char_table): Don't allow width and flags with "z" format.Joseph Myers4-0/+263
* 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
2000-08-25* testsuite/g++.old-deja/g++.other/crash22.C: New test.Jakub Jelinek2-0/+60
From-SVN: r35983
2000-08-25decl.c (grokfndecl): Require that `main' return an `int'.Mark Mitchell1-0/+4
* decl.c (grokfndecl): Require that `main' return an `int'. * mangle.c (write_encoding): Don't mangle return types for conversion functions. From-SVN: r35972
2000-08-25Makefile.in (C_AND_OBJC_OBJS): Remove c-iterate.o.Mark Mitchell2-1/+5
* 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
2000-08-24New tests.Richard Henderson4-0/+222
From-SVN: r35959
2000-08-24c-common.c (time_char_table): Don't allow width with %F.Joseph Myers3-4/+54
* 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
2000-08-24one last tweakJason Merrill1-1/+1
From-SVN: r35935
2000-08-24OK, once more:Jason Merrill2-3/+4
* lib/old-dejagnu.exp: Also ignore "In member function" and "At global scope". From-SVN: r35934
2000-08-24oopsJason Merrill1-1/+1
From-SVN: r35933
2000-08-24* lib/old-dejagnu.exp: Also ignore "In member function ".Jason Merrill2-2/+6
From-SVN: r35932
2000-08-23typeck.c (build_ptrmemfunc): Save the input pmf.Jason Merrill1-0/+38
* typeck.c (build_ptrmemfunc): Save the input pmf. * method.c (process_modifiers): Use same_type_p. From-SVN: r35930
2000-08-23* gcc.dg/noncompile/label-lineno-1.c: New test.Kaveh R. Ghazi2-0/+18
From-SVN: r35924
2000-08-23* gcc.dg/c99-array-nonobj-1.c: New test.Joseph Myers2-0/+31
From-SVN: r35923
2000-08-23c-common.c (print_char_table): Allow 'I' flag with %d, %i and %u.Joseph Myers4-0/+130
* 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
2000-08-23tr-warn4.c, [...]: New tests.Kaveh R. Ghazi11-0/+233
* 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
2000-08-22fix so failures are diagnosedJason Merrill59-72/+77
From-SVN: r35881
2000-08-22tweakJason Merrill1-1/+1
From-SVN: r35880
2000-08-22c-common.c (check_format_info): Give the 'some locales' warning for strftime ↵Joseph Myers4-0/+166
%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
2000-08-22New test.Richard Henderson2-0/+28
From-SVN: r35872
2000-08-21unroll.c (loop_find_equiv_value): If ret is modified between insn and ↵Jakub Jelinek2-2/+4
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
2000-08-21c-common.c (init_dollar_format_checking, [...]): New functions.Joseph Myers11-0/+615
* 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
2000-08-21c-common.c (scan_char_table): Add 'w' to flags for all formats except 'n'.Joseph Myers3-0/+148
* 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
2000-08-21* g++.old-deja/g++.other/loop2.C: New test.Jakub Jelinek2-0/+33
From-SVN: r35839
2000-08-2120000606-1.c: New test.Jakub Jelinek10-0/+249
* 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[multiple changes]Zack Weinberg3-0/+34
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
2000-08-19lexstrng.c: Don't include string.h.Zack Weinberg3-4/+6
* 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
2000-08-18* gcc.c-torture/compile/20000818-1.c: New test.Richard Kenner1-0/+4
From-SVN: r35795
2000-08-18New testRichard Kenner1-0/+6
From-SVN: r35794
2000-08-1820000818-1.c: New test.Manfred Hollstein2-0/+64
2000-08-18 Manfred Hollstein <manfredh@redhat.com> * gcc.c-torture/execute/20000818-1.c: New test. From-SVN: r35788
2000-08-18* gcc.dg/format-va-1.c: New test.Joseph Myers2-0/+17
From-SVN: r35786
2000-08-18* g++.old-deja/g++.other/typedef8.C: New test.Nathan Sidwell2-0/+30
From-SVN: r35780
2000-08-1813478.C: Mark candidate.Nathan Sidwell7-4/+88
* 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
2000-08-18* g++.old-deja/g++.pt/typename27.C: New test.Nathan Sidwell2-0/+25
From-SVN: r35776
2000-08-17crash44.C: Remove XFAIL.Nathan Sidwell5-5/+40
* 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
2000-08-15New test.Richard Henderson2-0/+74
From-SVN: r35740
2000-08-15c90-array-lval-2.c, [...]: New tests.Joseph Myers7-0/+142
* 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
2000-08-14* g++.old-deja/g++.other/refinit2.C: New test.Nathan Sidwell2-0/+22
From-SVN: r35673
2000-08-14c-torture.exp (c-torture): Make compiler_conditional_xfail_data global.Geoff Keating4-6/+37
* 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
2000-08-13In gcc/:Geoff Keating2-1/+5
* 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
2000-08-11parse.y (template_arg): Add rule for template qualified with global scope.Kriang Lerdsuwanakij1-0/+7
* parse.y (template_arg): Add rule for template qualified with global scope. From-SVN: r35654
2000-08-11decl2.c (add_function): Reorganize.Theodore Papadopoulo1-0/+13
* decl2.c (add_function): Reorganize. (arg_assoc): Do not consider function template decls. From-SVN: r35653
2000-08-11decl.c (lookup_name_real): Don't forget the TYPENAME_TYPE we're looking inside.Jason Merrill1-0/+32
* decl.c (lookup_name_real): Don't forget the TYPENAME_TYPE we're looking inside. From-SVN: r35650