[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-03-19 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 Jerry DeLisle jvdelisle at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-03-17 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #36 from Harald Anlauf anlauf at gmx dot de --- (In reply to Jerry DeLisle from comment #35) Author: jvdelisle Date: Tue Mar 17 01:22:12 2015 New Revision: 221473 URL: https://gcc.gnu.org/viewcvs?rev=221473root=gccview=rev Log:

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-03-17 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #38 from Jerry DeLisle jvdelisle at gcc dot gnu.org --- Author: jvdelisle Date: Wed Mar 18 01:47:12 2015 New Revision: 221482 URL: https://gcc.gnu.org/viewcvs?rev=221482root=gccview=rev Log: 2015-03-17 Jerry DeLisle

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-03-17 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #37 from Jerry DeLisle jvdelisle at gcc dot gnu.org --- (In reply to Harald Anlauf from comment #36) --snip--- are you sure that .and.ing the conditions in the testcase is correct, or shouldn't they rather be .or.ed? Oh of course.

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-03-16 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #35 from Jerry DeLisle jvdelisle at gcc dot gnu.org --- Author: jvdelisle Date: Tue Mar 17 01:22:12 2015 New Revision: 221473 URL: https://gcc.gnu.org/viewcvs?rev=221473root=gccview=rev Log: 2015-03-16 Jerry DeLisle

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-03-16 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #34 from Jerry DeLisle jvdelisle at gcc dot gnu.org --- Author: jvdelisle Date: Tue Mar 17 01:04:58 2015 New Revision: 221472 URL: https://gcc.gnu.org/viewcvs?rev=221472root=gccview=rev Log: 2015-03-16 Jerry DeLisle

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-03-16 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #33 from Jerry DeLisle jvdelisle at gcc dot gnu.org --- Author: jvdelisle Date: Tue Mar 17 01:01:54 2015 New Revision: 221471 URL: https://gcc.gnu.org/viewcvs?rev=221471root=gccview=rev Log: 2015-03-16 Jerry DeLisle

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-03-15 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #32 from Harald Anlauf anlauf at gmx dot de --- Jerry, to give you some positive feedback: I'm now using your latest patch in https://gcc.gnu.org/ml/fortran/2015-03/msg00067.html It works for me. Thanks, Harald

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-02-26 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #31 from Jerry DeLisle jvdelisle at gcc dot gnu.org --- I have generated a test case that includes all possible combinations and found some issues with the patch related to Real (KIND 10). I am working this now.

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-02-22 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #29 from Dominique d'Humieres dominiq at lps dot ens.fr --- Clean patch to avoid the errors: variable '*' set but not used --- ../_clean/gcc/fortran/trans-intrinsic.c2015-01-17 21:48:17.0 +0100 +++

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-02-22 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #28 from Dominique d'Humieres dominiq at lps dot ens.fr --- Bootstrapping with the patch in comment 26 fails with /opt/gcc/build_w/./prev-gcc/xg++ -B/opt/gcc/build_w/./prev-gcc/ -B/opt/gcc/gcc4.10w/x86_64-apple-darwin14.1.0/bin/

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-02-22 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #30 from Jerry DeLisle jvdelisle at gcc dot gnu.org --- (In reply to Dominique d'Humieres from comment #28 and #29) Thanks for checking and I have the cleanup taken care of. I am making some adjustments to avoid ABI issues as well.

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-02-20 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #27 from Harald Anlauf anlauf at gmx dot de --- (In reply to Jerry DeLisle from comment #26) Created attachment 34819 [details] Updated full patch. Revised to fix error shown in Comment #22 The new patch does indeed fix the

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-02-20 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 Jerry DeLisle jvdelisle at gcc dot gnu.org changed: What|Removed |Added Attachment #34798|0 |1 is

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-02-19 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #25 from Jerry DeLisle jvdelisle at gcc dot gnu.org --- (In reply to Jerry DeLisle from comment #24) (In reply to Harald Anlauf from comment #22) count_rate(8),count_max(1) =0 127 OK, but the last line

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-02-18 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #23 from Harald Anlauf anlauf at gmx dot de --- (In reply to Jerry DeLisle from comment #21) Created attachment 34798 [details] Full Patch This patch attempts to do it all. I have not tested the mingw/cygwin side of it. Any

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-02-18 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #22 from Harald Anlauf anlauf at gmx dot de --- (In reply to Jerry DeLisle from comment #21) Created attachment 34798 [details] Full Patch This patch attempts to do it all. I have not tested the mingw/cygwin side of it. Any

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-02-18 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #24 from Jerry DeLisle jvdelisle at gcc dot gnu.org --- (In reply to Harald Anlauf from comment #22) count_rate(8),count_max(1) =0 127 OK, but the last line looks strange: lacking documentation, I'd expect

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-02-17 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #21 from Jerry DeLisle jvdelisle at gcc dot gnu.org --- Created attachment 34798 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34798action=edit Full Patch This patch attempts to do it all. I have not tested the mingw/cygwin

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-02-16 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #20 from Jerry DeLisle jvdelisle at gcc dot gnu.org --- (In reply to Harald Anlauf from comment #19) (In reply to Jerry DeLisle from comment #17) Created attachment 34765 [details] Handle KIND=1 and KIND=2 Jerry, I applied

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-02-16 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #19 from Harald Anlauf anlauf at gmx dot de --- (In reply to Jerry DeLisle from comment #17) Created attachment 34765 [details] Handle KIND=1 and KIND=2 Jerry, I applied your patch on top of rev. 220730. Unfortunately it ICEs on

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-02-15 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #18 from Jerry DeLisle jvdelisle at gcc dot gnu.org --- Created attachment 34771 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34771action=edit A test case Current results with attached test case. $ ./a.out KIND=1: 34 1 127

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-02-14 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #17 from Jerry DeLisle jvdelisle at gcc dot gnu.org --- Created attachment 34765 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34765action=edit Handle KIND=1 and KIND=2 This updated patch gives a proposed way to handle KIND=1

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-02-13 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #16 from Harald Anlauf anlauf at gmx dot de --- (In reply to Jerry DeLisle from comment #15) I was looking at this one just the other day. There are three PRs related to SYSTEM_CLOCK that we should attempt to close. I will look

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-02-11 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 Jerry DeLisle jvdelisle at gcc dot gnu.org changed: What|Removed |Added CC||jvdelisle at

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-01-19 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #14 from Harald Anlauf anlauf at gmx dot de --- Created attachment 34488 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34488action=edit Updated partial patch This modified partial patch addresses the potential performance issue

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-01-09 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P4

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-01-09 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |5.0

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-01-04 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #10 from Harald Anlauf anlauf at gmx dot de --- Created attachment 34374 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34374action=edit Partial patch to handle proposed behavior of system_clock

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-01-04 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #11 from Harald Anlauf anlauf at gmx dot de --- (In reply to Harald Anlauf from comment #10) Created attachment 34374 [details] Partial patch to handle proposed behavior of system_clock The patch in comment #10 is a way to produce

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-01-04 Thread fxcoudert at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #12 from Francois-Xavier Coudert fxcoudert at gcc dot gnu.org --- (In reply to Harald Anlauf from comment #10) Partial patch to handle proposed behavior of system_clock Thanks for the partial patch. Some quick critique: - it

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2015-01-04 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #13 from Harald Anlauf anlauf at gmx dot de --- (In reply to Francois-Xavier Coudert from comment #12) (In reply to Harald Anlauf from comment #10) Partial patch to handle proposed behavior of system_clock Thanks for the partial

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2014-12-30 Thread Joost.VandeVondele at mat dot ethz.ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 Joost VandeVondele Joost.VandeVondele at mat dot ethz.ch changed: What|Removed |Added CC|

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2014-12-30 Thread Joost.VandeVondele at mat dot ethz.ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #9 from Joost VandeVondele Joost.VandeVondele at mat dot ethz.ch --- reading the standard, indeed it seems like count_rate can be real as well... same rules here *4 - _4 *8 - _8. As a side remark the following generates a slightly

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2014-12-29 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #1 from Harald Anlauf anlauf at gmx dot de --- Modifying the test code as follows: % cat gfcbug128b.f90 program gfcbug128b integer(4) :: count_rate, count_max call system_clock (count_rate=count_rate,count_max=count_max) call

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2014-12-29 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 Harald Anlauf anlauf at gmx dot de changed: What|Removed |Added CC||fxcoudert at gcc dot

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2014-12-29 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #3 from janus at gcc dot gnu.org --- (In reply to Harald Anlauf from comment #0) I just discovered that the 20141227 snapshot breaks SYSTEM_CLOCK when the COUNT_RATE argument is a 32-bit integer: Confirmed. Probably due to r211686.

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2014-12-29 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 janus at gcc dot gnu.org changed: What|Removed |Added Keywords||wrong-code

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2014-12-29 Thread fxcoudert at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 Francois-Xavier Coudert fxcoudert at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2014-12-29 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #5 from Harald Anlauf anlauf at gmx dot de --- (In reply to Francois-Xavier Coudert from comment #4) I'm not sure this is a bug, but this was definitely by design (as the comment indicates). I think this is allowed by the successive

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2014-12-29 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #6 from Harald Anlauf anlauf at gmx dot de --- (In reply to Harald Anlauf from comment #5) Also, the presence of a second argument (see comment #1) should not change the behavior. To make that explicit: % cat gfcbug128c.f90

[Bug fortran/64432] [5 Regression] SYSTEM_CLOCK(COUNT_RATE=rate) wrong result for integer(4)::rate

2014-12-29 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64432 --- Comment #7 from Harald Anlauf anlauf at gmx dot de --- (In reply to Harald Anlauf from comment #5) (In reply to Francois-Xavier Coudert from comment #4) If you have another idea, please post a list of what you think should happen in all