aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g77.dg
AgeCommit message (Collapse)AuthorFilesLines
2004-02-21target-supports.exp (check_profiling_available): Check argument to determine ↵Kaveh R. Ghazi1-1/+1
whether we support a profiling type. * lib/target-supports.exp (check_profiling_available): Check argument to determine whether we support a profiling type. * lib/gcc-dg.exp (dg-require-profiling): Pass argument to check_profiling_available. * g++.dg/bprob/bprob.exp: Likewise * g77.dg/bprob/bprob.exp: Likewise. * gcc.misc-tests/bprob.exp: Likewise. * g++.old-deja/g++.law/profile1.C: Pass profiling type to dg-require-profiling and delete expected error handling. * gcc.dg/20021014-1.c: Likewise. * gcc.dg/nest.c: Likewise. From-SVN: r78206
2003-12-29re PR fortran/12632 ([g77 only] -fbounds-check ICE)Roger Sayle1-0/+6
PR fortran/12632 * fold-const.c (fold) <COND_EXPR>: Don't fold a constant condition, if the type of the selected branch doesn't match its' parent. * com.c (ffecom_subscript_check_): Take as an extra argument the (possibly NULL) decl of the array. Don't create unnecessary tree nodes if the array index is known to be safe at compile-time. If the array index is unsafe, force the array decl into memory to avoid RTL expansion problems. (ffecom_array_ref_): Update calls to ffecom_subscript_check_. (ffecom_char_args_x_): Likewise. * g77.dg/12632.f: New test case. From-SVN: r75203
2003-12-24calls.c (expand_call): Recognize calls to "sqrt" and create corresponding notes.Mark Mitchell1-0/+2
* calls.c (expand_call): Recognize calls to "sqrt" and create corresponding notes. * g++.dg/bprob/bprob.exp: Load target-supports.exp * g77.dg/bprob/bprob.exp: Likewise. * gcc.misc-tests/bprob.exp: Likewise. * gcc.dg/builtins-18.c: Use builtins-config.h. Do not test float variants on systems where the library does not provide that functionality. * gcc.dg/builtins-20.c: Use builtins-config.h. * gcc.dg/builtins-config.h: New file. From-SVN: r75003
2003-12-23gcc-dg.exp (dg-require-profiling): New function.Mark Mitchell1-5/+1
* lib/gcc-dg.exp (dg-require-profiling): New function. * lib/target-supports.exp (check_profiling_available): Likewise. * g++.dg/bprob/bprob.exp: Use check_profiling_available. * g77.dg/bprob/bprob.exp: Likewise. * gcc.misc-tests/bprob.exp: Likewise. * g++.old-deja/g++.law/profile1.C: Use dg-require-profiling. * gcc.dg/20021014-1.c: Likewise. * gcc.dg/nest.c: Likewise. From-SVN: r74995
2003-10-31bprob.exp: Disable test on arm-elf configs.Richard Earnshaw1-0/+3
* g77.dg/bprob/bprob.exp: Disable test on arm-elf configs. * gcc.misc-tests/bprob.exp: Likewise. * g77.dg/execute/20001201.x, 6367.x, io0.x, io1.x, u77-test.x: XFAIL the execution test on arm-elf configs. * g77.dg/execute/10197.x: New file. XFAIL the execution test on configs that don't support scratch files. * g77.dg/execute/u77-test.x: XFAIL compilation on arm-elf configs. From-SVN: r73133
2003-07-09bprob.exp (prof_ext): Update.Nathan Sidwell1-1/+1
* g++.dg/bprob/bprob.exp (prof_ext): Update. * g77.dg/bprob/bprob.exp (prof_ext): Update. * gcc.misc-tests/bprob.exp (prof_ext): Update. * gcc.misc-tests/gcov.exp: Update * g++.dg/gcov/gcov.exp: Update * lib/gcov.exp: Update. From-SVN: r69145
2003-05-31ffree-form-2.f: XFAIL removed, because fixed.Toon Moene1-1/+0
2003-05-31 Toon Moene <toon@moene.indiv.nluug.nl> * g77.dg/ffree-form-2.f: XFAIL removed, because fixed. From-SVN: r67277
2003-05-27re PR fortran/10843 (g77 -ffree-form rejects "GO TO".)David Billinghurst4-0/+50
2003-05-27 David Billinghurst (David.Billinghurst@riotinto.com) PR fortran/10843 * g77.dg/ffixed-form-1.f: New test * g77.dg/ffixed-form-2.f: New test * g77.dg/ffree-form-2.f: New test - XFAIL pending fix * g77.dg/ffree-form-3.f: New test From-SVN: r67181
2003-03-31gcov.c: Add -a & -u options.Nathan Sidwell1-8/+0
* gcov.c: Add -a & -u options. (struct arc_info): Add local_span, is_call_non_return, is_nonlocal_return, is_unconditional flags, remove is_call flag. (struct block_info): Add flags, is_call_site, is_nonlocal_return members. Make encodings a union with span member. (struct function_info): Add blocks_executed, line, src, line_next members. (struct coverage_info): Make branches a union with blocks member. (struct source_info): Add functions member. (object_summary, program_count): New global variables. (flag_all_blocks, flag_unconditional): New flags. (find_source, output_branch_count): New functions. (print_usage): Adjust. (options): Adjust. (process_args): Adjust. (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust. <GCOV_TAG_BLOCKS>: Read flags. <GCOV_TAG_LINES>: Adjust. (read_count_file): Process SUMMARY tags. (solve_flow_graph): Set is_unconditional and clear is_call_site appropriately. (add_branch_counts): Adjust. Don't count unconditional branches. (add_line_counts): Deal with all-blocks mode, accumulate block coverage. (accumulate_line_counts): Adjust, generate local spanning tree for all-blocks mode. (output_lines): Adjust. * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record. * doc/gcov.texi: Document. testsuite: * lib/gcov.exp: Adjust call return testing strings. * g77.dg/gcov/gcov-1.f: Don't expect unconditional branches. From-SVN: r65090
2003-03-27gcov.exp (run-gcov): Add branches and calls options, rather than reading .x ↵Mark Mitchell2-4/+1
files. * lib/gcov.exp (run-gcov): Add branches and calls options, rather than reading .x files. * g++.dg/gcov/gcov-1.C: Use run-gcov options, not .x files. * g77.dg/gcov/gcov-1.f: Likewise. * gcc.misc-tests/gcov-4b.c: Likewise. * gcc.misc-tests/gcov-5b.c: Likewise. * gcc.misc-tests/gcov-6.c: Likewise. * gcc.misc-tests/gcov-7.c: Likewise. * gcc.misc-tests/gcov-8.c: Likewise. * g++.dg/gcov/gcov-1.x: Remove. * g77.dg/gcov/gcov-1.x: Likewise. * gcc.misc-tests/gcov-4b.x: Likewise. * gcc.misc-tests/gcov-5b.x: Likewise. * gcc.misc-tests/gcov-6.x: Likewise. * gcc.misc-tests/gcov-7.x: Likewise. * gcc.misc-tests/gcov-8.x: Likewise. From-SVN: r64937
2003-01-28re PR rtl-optimization/9258 (ICE in compensate_edge, at reg-stack.c:2589)Toon Moene1-0/+18
2003-01-28 Toon Moene <toon@moene.indiv.nluug.nl> PR fortran/9258 * g77.dg/pr9258: New test. From-SVN: r61984
2002-10-21profopt.exp (profopt-cleanup): New argument TESTCASE.Ulrich Weigand2-5/+1
* lib/profopt.exp (profopt-cleanup): New argument TESTCASE. Remove only files with the same base name as the test case. (profopt-perf-value): Pass TESTCASE to profopt-cleanup. (profopt-execute): Likewise. Also, remove old profiling and performance data files before running the tests. * gcc.misc-tests/bprob.exp: Remove profopt-cleanup calls. * g++.dg/bprob/bprob.exp: Likewise. * g77.dg/bprob/bprob.exp: Likewise. Also, relax regexp to allow more general test case names. * g++.dg/bprob/bprob-1.C: Rename to ... * g++.dg/bprob/g++-bprob-1.C: ... this. * g77.dg/bprob/bprob-1.f: Rename to ... * g77.dg/bprob/g77-bprob-1.f: ... this. From-SVN: r58380
2002-09-16ChangeLog: follow spelling conventions.Kazu Hirata1-1/+1
* ChangeLog: follow spelling conventions. * g++.old-deja/g++.abi/ptrmem.C: Likewise. * g++.old-deja/g++.bugs/900210_05.C: Likewise. * g++.old-deja/g++.bugs/900211_04.C: Likewise. * g++.old-deja/g++.bugs/900321_02.C: Likewise. * g++.old-deja/g++.bugs/900404_02.C: Likewise. * g++.old-deja/g++.bugs/900520_06.C: Likewise. * g++.old-deja/g++.law/global-init1.C: Likewise. * g++.old-deja/g++.other/delete4.C: Likewise. * g++.old-deja/g++.other/inline21.C: Likewise. * g++.old-deja/g++.other/singleton.C: Likewise. * g77.dg/strlen0.f: Likewise. * g77.f-torture/compile/20010519-1.f: Likewise. * g77.f-torture/compile/980310-4.f: Likewise. * gcc.c-torture/compile/20000605-1.c: Likewise. * gcc.c-torture/execute/20020225-1.c: Likewise. * gcc.dg/c90-hexfloat-2.c: Likewise. * gcc.dg/c99-bool-1.c: Likewise. * gcc.dg/c99-hexfloat-2.c: Likewise. * gcc.dg/dll-2.c: Likewise. * gcc.dg/wtr-union-init-1.c: Likewise. * gcc.dg/wtr-union-init-2.c: Likewise. * gcc.dg/wtr-union-init-3.c: Likewise. * gcc.dg/cpp/avoidpaste1.c: Likewise. * gcc.dg/cpp/defined.c: Likewise. * gcc.dg/cpp/macsyntx.c: Likewise. * gcc.dg/cpp/paste2.c: Likewise. * gcc.dg/cpp/trad/defined.c: Likewise. * gcc.dg/format/c90-printf-1.c: Likewise. * gcc.dg/format/c90-scanf-1.c: Likewise. * gcc.dg/format/c99-printf-1.c: Likewise. * gcc.dg/format/c99-scanf-1.c: Likewise. * gcc.misc-tests/gcov-8.c: Likewise. * lib/profopt.exp: Likewise. From-SVN: r57189
2002-09-08re PR fortran/7388 (Incorrect output with 0 based array of characters.)Toon Moene1-0/+12
2002-09-08 Toon Moene <toon@moene.indiv.nluug.nl> * g77.dg/7388.f: New test case for PR 7388. From-SVN: r56953
2002-04-20f77-edit-i-in.f: Restore missing { dg-do run }David Billinghurst1-0/+2
2002-04-20 David.Billinghurst <David.Billinghurst@riotinto.com> * g77.dg/f77-edit-i-in.f: Restore missing { dg-do run } From-SVN: r52555
2002-04-14f77-edit-i-in.f: Use internal buffer in place of scratch file.David Billinghurst1-13/+8
2002-04-12 David Billinghurst <David.Billinghurst@riotinto.com> * g77.dg/f77-edit-i-in.f: Use internal buffer in place of scratch file. From-SVN: r52294
2002-04-03bprob.exp: Skip for mmix-*-* and cris-*-*.Hans-Peter Nilsson1-1/+8
* g77.dg/bprob/bprob.exp: Skip for mmix-*-* and cris-*-*. * g++.dg/bprob/bprob.exp, gcc.misc-tests/bprob.exp: Ditto. From-SVN: r51772
2002-04-03f77-edit-i-in.f: xfail for mmix-knuth-mmixware.Hans-Peter Nilsson1-1/+2
* g77.dg/f77-edit-i-in.f: xfail for mmix-knuth-mmixware. * g77.f-torture/execute/io0.x, g77.f-torture/execute/io1.x, g77.f-torture/execute/20001201.x, g77.f-torture/execute/u77-test.x: New files. From-SVN: r51771
2002-03-25f77-edit-apostrophe-out.f: New testDavid Billinghurst8-0/+128
2002-03-25 David Billinghurst <David.Billinghurst@riotinto.com> * g77.dg/f77-edit-apostrophe-out.f: New test * g77.dg/f77-edit-h-out.f: New test * g77.dg/f77-edit-t-in.f: New test * g77.dg/f77-edit-t-out.f: New test * g77.dg/f77-edit-x-out.f: New test * g77.dg/f77-edit-slash-out.f: New test * g77.dg/f77-edit-colon-out.f: New test * g77.dg/f77-edit-s-out.f: New test From-SVN: r51287
2002-02-07re PR fortran/5473 (ICE on BESJN(integer*8,real))David Billinghurst1-3/+7
2002-02-07 David Billinghurst <David.Billinghurst@riotinto.com> PR fortran/5473 * g77.dg/pr5473.f: Now dg-error. Add additional cases. From-SVN: r49594
2002-02-05pr5473.f: New testDavid Billinghurst1-0/+11
2002-02-05 David Billinghurst <David.Billinghurst@riotinto.com> * g77.dg/pr5473.f: New test From-SVN: r49531
2002-02-03pr3743.f: DeleteDavid Billinghurst4-0/+31
2002-02-03 David Billinghurst <David.Billinghurst@riotinto.com> * g77.f-torture/compile/pr3743.f: Delete * g77.dg/pr3743-1.f: New test. * g77.dg/pr3743-2.f: New test. * g77.dg/pr3743-3.f: New test. * g77.dg/pr3743-4.f: New test. From-SVN: r49450
2002-01-30f77-edit-i-out.f: Escape \.David Billinghurst1-16/+15
2002-01-30 David Billinghurst <David.Billinghurst@riotinto.com> * g77.dg/f77-edit-i-out.f: Escape \. Allow \r\n and \r. From-SVN: r49337
2002-01-27f77-edit-i-in.f: New testDavid Billinghurst2-0/+51
2002-01-26 David Billinghurst <David.Billinghurst@riotinto.com> * g77.dg/f77-edit-i-in.f: New test * g77.dg/f77-edit-i-out.f: New test From-SVN: r49257
2001-09-22strlen0.f: New test.George Helffrich1-0/+95
2001-09-22 George Helffrich <george@geo.titech.ac.jp> * g77.dg/strlen0.f: New test. From-SVN: r45748
2001-09-14Run tests of gcov output.Janis Johnson1-0/+44
* g77.dg/gcov: New directory. * g77.dg/gcov/gcov.exp: New file. * g77.dg/gcov/gcov-1.f: New test. * g77.dg/gcov/gcov-1.x: New file. From-SVN: r45612
2001-09-14Options to control test of gcov output.Janis Johnson1-0/+3
* g77.dg/gcov: New directory. * g77.dg/gcov/gcov.exp: New file. * g77.dg/gcov/gcov-1.f: New test. * g77.dg/gcov/gcov-1.x: New file. From-SVN: r45611
2001-09-14Test for gcov output.Janis Johnson1-0/+427
* g77.dg/gcov: New directory. * g77.dg/gcov/gcov.exp: New file. * g77.dg/gcov/gcov-1.f: New test. * g77.dg/gcov/gcov-1.x: New file. From-SVN: r45610
2001-09-14Support for tests of -fbranch-probabilities.Janis Johnson1-0/+55
* g77.dg/bprob: New directory. * g77.dg/bprob/bprob.exp: New file. * g77.dg/bprob/bprob-1.f: New test. From-SVN: r45609
2001-09-14Test for -fbranch-probability.Janis Johnson1-0/+330
* g77.dg/bprob: New directory. * g77.dg/bprob/bprob.exp: New file. * g77.dg/bprob/bprob-1.f: New test. From-SVN: r45608
2001-08-02ff90-1.f (s): Fix reference of variable z, should be x.Jeffrey Oldham1-1/+1
2001-08-02 Jeffrey Oldham <oldham@codesourcery.com> * g77.dg/ff90-1.f (s): Fix reference of variable z, should be x. From-SVN: r44582
2001-08-01[multiple changes]David Billinghurst21-0/+185
2001-08-01 David Billinghurst <David.Billinghurst@riotinto.com> * lib/g77.exp: Load gcc-defs.exp for common procedures (g77_pass, g77_fail, g77_finish, g77_exit, ${tool}_check_unsupported_p} Now redundant. Deleted. 2001-08-01 David Billinghurst <David.Billinghurst@riotinto.com> * g77.dg/fbackslash.f * g77.dg/fcase-preserve.f * g77.dg/ff90-1.f * g77.dg/ffixed-line-length-0.f * g77.dg/ffixed-line-length-132.f * g77.dg/ffixed-line-length-7.f * g77.dg/ffixed-line-length-72.f * g77.dg/ffixed-line-length-none.f * g77.dg/ffree-form-1.f * g77.dg/fno-backslash.f * g77.dg/fno-f90-1.f * g77.dg/fno-fixed-form-1.f * g77.dg/fno-onetrip.f * g77.dg/fno-typeless-boz.f * g77.dg/fno-underscoring.f * g77.dg/fno-vxt-1.f * g77.dg/fonetrip.f * g77.dg/ftypeless-boz.f * g77.dg/fugly-assumed.f * g77.dg/funderscoring.f * g77.dg/fvxt-1.f From-SVN: r44555
2001-02-20sibcall.c (skip_copy_to_return_value): Call identify_call_return_value here, ↵Zack Weinberg2-0/+87
and return orig_insn if it returns zero. * sibcall.c (skip_copy_to_return_value): Call identify_call_return_value here, and return orig_insn if it returns zero. Hardret and softret arguments now unnecessary. (call_ends_block_p): Don't call identify_call_return_value here. * ggc-common.c (ggc_mark_rtx_children): No need to mark 'S' or 's' slots in RTXen. * ggc-page.c, ggc-simple.c (ggc_mark_if_gcable): Delete function. * ggc.h (ggc_mark_if_gcable): Delete prototype. testsuite: * g77.dg: New directory. * g77.dg/20010216-1.f: New test case. * g77.dg/dg.exp: New driver. * lib/g77-dg.exp: New driver library. From-SVN: r39916