[Bug fortran/38672] [4.3/4.4 Regression] ICE during build with versions 4.3.2 and 4.4-20081226

2008-12-30 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2008-12-30 16:50 --- Works with 4.2.1 (x86_64-suse-linux). Valgrind shows: ==27337== Invalid read of size 1 ==27337==at 0x4752E2: resolve_symbol (resolve.c:9311) ==27337==by 0x482726: traverse_ns (symbol.c:3127) ==27337==by

[Bug fortran/38657] [4.3/4.4 Regression] PUBLIC/PRIVATE Common blocks

2009-01-05 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2009-01-05 14:18 --- If one compares the dumps, one finds an additional + extern character(kind=1) testchar[1:80]; in the failing version. Thus while the working version accesses &testcommon1.testchar[1]{lb: 1 sz: 1} the fai

[Bug fortran/38657] [4.3/4.4 Regression] PUBLIC/PRIVATE Common blocks

2009-01-05 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-01-05 13:35 --- I checked my old trunk builds: 2007-11-05-r129891 - works 2007-11-20-r130310 - fails (= 25 fortran/ commits) Assuming no local problems and a clean tree (looks like), the following commit might have caused the

[Bug fortran/38813] New: ICE with C_LOC(array)

2009-01-12 Thread burnus at gcc dot gnu dot org
words: ice-on-invalid-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38813

[Bug fortran/38813] ICE with C_LOC(array)

2009-01-12 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-01-12 13:34 --- > I think NAG f95 is right by rejecting it with: > Error: line 9: The argument to C_LOC must not be an array pointer Or maybe not: "15.1.2.5 C_LOC(X)" has for the result value: "(2) If X is

[Bug fortran/38810] Floating point exception

2009-01-12 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2009-01-12 16:39 --- For quick reading, skip next part and continue below the * * *. --- I think this applies still (at least partially) as libgfortran/config/fpu*.h's set_cpu() still has the line. For GLIBC one

[Bug fortran/38813] ICE with C_LOC(array)

2009-01-12 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2009-01-12 16:59 --- For the diagnostics: I think it works, but we are checking in case of C_LOC(Type%Comp) the symbol Type instead of Comp. Assume that Type is a pointer and Comp is not then "gfc_is_data_pointer()" return

[Bug fortran/38822] New: ICE in in gfc_target_encode_expr

2009-01-13 Thread burnus at gcc dot gnu dot org
Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38822

[Bug fortran/38823] New: Diagnose and treat (-2.0)**2.0 properly

2009-01-13 Thread burnus at gcc dot gnu dot org
properly Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot

[Bug fortran/38822] Compile-time simplification of x**(real) / ICE in in gfc_target_encode_expr

2009-01-13 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-01-13 16:33 --- The problem is the following in arith.c: if (op == INTRINSIC_POWER && op2->ts.type != BT_INTEGER) goto runtime; Thus it is only run-time evaluated. gfc_arith_power deals so far only with (n

[Bug fortran/38823] Diagnose and treat (-2.0)**2.0 properly

2009-01-13 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2009-01-13 16:35 --- I wonder whether this should be fixed together with PR 38823. Currently, (x)**(non-integer) is never be simplified at compile time - and the simplification would be an obvious place to do the checking. -- http

[Bug fortran/38829] New: Bogus BIND(C) error message

2009-01-13 Thread burnus at gcc dot gnu dot org
- Summary: Bogus BIND(C) error message Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org

[Bug fortran/38830] Add "Variable Format Expression" I/O Capability

2009-01-13 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-01-13 20:31 --- Needed for legacy code; internal I/O allows the same (and more powerful) albeit a bit lengthier. Cf. http://gcc.gnu.org/ml/fortran/2009-01/msg00167.html and http://coding.derkeiler.com/Archive/Fortran

[Bug fortran/38823] Diagnose and treat (-2.0)**2.0 properly

2009-01-13 Thread burnus at gcc dot gnu dot org
--- Comment #12 from burnus at gcc dot gnu dot org 2009-01-13 21:41 --- > Add a runtime check that x in x**y is not < 0 I'm actually against a run time check which is based on -std=, -pedantic, -W* or similar compile time diagnostic flags. I regard such trickery behind th

[Bug regression/38838] New: BIND(C): Binding name expressions are wrongly rejected

2009-01-14 Thread burnus at gcc dot gnu dot org
: normal Priority: P3 Component: regression AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38838

[Bug regression/38838] BIND(C): Binding name expressions are wrongly rejected

2009-01-14 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-01-14 15:07 --- Example: subroutine test() bind(c, name=trim("Hello ")) end Error: Syntax error in NAME= specifier for binding label at (1) Per the R509 cited above this is valid. It is also accepted by other

[Bug regression/38838] BIND(C): Binding name expressions are wrongly rejected

2009-01-14 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2009-01-14 15:13 --- Found at http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/d977a668b0316119 by James Van Buskirk -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38838

[Bug fortran/38822] Compile-time simplification of x**(real) / ICE in in gfc_target_encode_expr

2009-01-14 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2009-01-14 15:30 --- Before closing, please also check the two longer cases: http://groups.google.com/group/comp.lang.fortran/msg/97c3ce6e98432ae9 and the older (partially incorrect?) one at http://groups.google.com/group

[Bug fortran/38839] New: BIND(C): Allow non-digit/underscore/alphabetic binding names

2009-01-14 Thread burnus at gcc dot gnu dot org
s: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38839

[Bug fortran/38838] BIND(C): Binding name expressions are wrongly rejected

2009-01-14 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2009-01-14 16:00 --- The following seems to be rejected as well: subroutine test() bind(c, name=1_"name") I don't see why this is rejected. The standard has: C540 (R509) The scalar-char-initialization-expr shal

[Bug fortran/38839] BIND(C): Allow non-digit/underscore/alphabetic binding names

2009-01-14 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-01-14 16:00 --- And for the universal-character-name, the following compiles with Intel's icc void \u01ac(void) { } and should be valid C99. ICC generates the identifier "_u01ac". Using "gcc -fextended-identif

[Bug fortran/38839] BIND(C): Allow non-digit/underscore/alphabetic binding names

2009-01-14 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2009-01-14 16:09 --- For UCN see also PR 9449. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38839

[Bug middle-end/38846] New: [Graphite] 70% slower using -floop* than without graphite (gas_dyn of Polyhedron)

2009-01-14 Thread burnus at gcc dot gnu dot org
FIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38846

[Bug middle-end/38846] [Graphite] 70% slower using -floop* than without graphite (gas_dyn of Polyhedron)

2009-01-14 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2009-01-14 18:45 --- The culprit is -floop-block (which is already enabled by default in the graphite branch with -O2). Using only -floop-interchange -floop-strip-mine I get a run time inbetween (16.5s, single run). Using only -fgraphite

[Bug middle-end/38846] [Graphite] 70% slower using -floop* than without graphite (gas_dyn of Polyhedron)

2009-01-14 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2009-01-14 21:16 --- > Thanks for this report. Please also test with the code of graphite > branch that contains a patch that schedules several scalar optimizations > that can improve the quality of the code generated.

[Bug fortran/38813] ICE with C_LOC(array)

2009-01-14 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2009-01-14 21:26 --- > @@ -2451 +2451 @@ gfc_conv_function_call (gfc_se * se, gfc > - && fsym->as->type != AS_ASSUMED_SHAPE; > + && fsym->as && fsym->as->typ

[Bug fortran/38859] [4.3/4.4 Regression] ubound and lbound treat structure component references as whole arrays

2009-01-15 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-01-15 20:04 --- Confirm. This is a regression with regards to 4.2.1; it fails at least since 20071008 (my oldest 4.3 trunk version). Thanks for the report! -- burnus at gcc dot gnu dot org changed: What|Removed

[Bug fortran/38859] [4.3/4.4 Regression] ubound and lbound treat structure component references as whole arrays

2009-01-15 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2009-01-15 20:10 --- ida = lbound(a%i) if (any(ida /= (/1,1/))) print *, 'lbound', ida Here, gfortran prints: lbound 0 2 Correct would be lbound 1 1 ida = ubound(a) >>>>>>

[Bug fortran/38152] [4.4 Regression] procedure pointers as module variables

2009-01-15 Thread burnus at gcc dot gnu dot org
--- Comment #9 from burnus at gcc dot gnu dot org 2009-01-16 06:50 --- > Can we still get this into 4.4? In a way the ICE is a regression, since 4.3 > just gave an error message (stating that procedure pointers are not > implemented) but no ICE. I think one could; the p

[Bug libfortran/38871] [4.4 Regression] libgfortran.so.3 dropped __iso_c_binding_c_f_procpointer@@GFORTRAN_1.0

2009-01-16 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2009-01-16 19:32 --- I will check, but if I recall correctly, procedure pointer were not implemented at the time when it was removed, i.e. it could not possibly be called. When they got implemented, no casting was needed as they were

[Bug libfortran/38871] [4.4 Regression] libgfortran.so.3 dropped __iso_c_binding_c_f_procpointer@@GFORTRAN_1.0

2009-01-16 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2009-01-16 19:43 --- (In reply to comment #4) > I will check, but if I recall correctly, procedure pointer were not > implemented > at the time when it was removed The function was not even referred in trans*.c as far as I can

[Bug fortran/38883] [4.4 Regression] Internal Compiler Error for MVBITS with derived type argument that has run-time subscripts

2009-01-16 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-01-16 21:38 --- Confirm. Working: 4.4.0 20081029 (experimental) [trunk revision 141421] Failing: 4.4.0 20081103 (experimental) [trunk revision 141544] (assuming that my tree was clean back then) -- burnus at gcc dot gnu dot org

[Bug fortran/38887] [4.4 Regression] run-time abort for MVBITS with run-time zero sized array arguments

2009-01-16 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-01-16 21:48 --- Confirm. Thanks for reporting. Backtrace: #0 0x2b4a4645 in raise () from /lib64/libc.so.6 #1 0x2b4a5c33 in abort () from /lib64/libc.so.6 #2 0x2ad69c00 in *_gfortrani_internal_unpack_4 (d

[Bug fortran/38894] New: c_f_funpointer - add missing argument checking

2009-01-17 Thread burnus at gcc dot gnu dot org
t org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38894

[Bug libfortran/38871] [4.4 Regression] libgfortran.so.3 dropped __iso_c_binding_c_f_procpointer@@GFORTRAN_1.0

2009-01-17 Thread burnus at gcc dot gnu dot org
--- Comment #7 from burnus at gcc dot gnu dot org 2009-01-17 09:18 --- (In reply to comment #6) > I'd say re-adding that symbol until you change libgfortran ABI wouldn't hurt > anything, but if you can prove no program could ever use it except for > referencing dire

[Bug libfortran/38871] [4.4 Regression] libgfortran.so.3 dropped __iso_c_binding_c_f_procpointer@@GFORTRAN_1.0

2009-01-17 Thread burnus at gcc dot gnu dot org
--- Comment #8 from burnus at gcc dot gnu dot org 2009-01-17 09:37 --- > However, I just saw that due to missing argument checking the following works > in gfortran 4.3: > > call c_f_funpointer(fun,bar) ! <<< Invalid; should be C_F_POINTER That's actually no

[Bug libfortran/38871] [4.4 Regression] libgfortran.so.3 dropped __iso_c_binding_c_f_procpointer@@GFORTRAN_1.0

2009-01-17 Thread burnus at gcc dot gnu dot org
--- Comment #9 from burnus at gcc dot gnu dot org 2009-01-17 09:58 --- Patch http://gcc.gnu.org/ml/fortran/2009-01/msg00209.html or one can close it as WONTFIX. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38871

[Bug fortran/38894] c_f_procpointer/c_f_pointer - add missing argument checking

2009-01-17 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-01-17 10:46 --- The example was wrong as the name is c_f_PROCpointer (no -fun- only in type(c_funptr) and c_FUNloc). Working example: use iso_c_binding type(c_ptr) :: fun procedure(), pointer :: bar call c_f_procpointer(fun,bar

[Bug fortran/38152] [4.4 Regression] procedure pointers as module variables

2009-01-17 Thread burnus at gcc dot gnu dot org
--- Comment #13 from burnus at gcc dot gnu dot org 2009-01-17 13:25 --- Close as FIXED based on Dominique's remark. -- burnus at gcc dot gnu dot org changed: What|Removed |

[Bug fortran/38859] [4.3/4.4 Regression] ubound and lbound treat structure component references as whole arrays

2009-01-17 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2009-01-17 15:45 --- > shouldn't this be fixed for 4.3.3? Too late - the release is too soon (freeze; release-candidate build is running). Regarding 4.4.0: Do you plan to submit a patch soonish? -- http://gcc.gnu.org/

[Bug fortran/38887] [4.4 Regression] run-time abort for MVBITS with run-time zero sized array arguments

2009-01-17 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2009-01-17 22:20 --- Created an attachment (id=17130) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17130&action=view) Difference of the dump The problem is the call _gfortran_internal_unpack (&parm.2, D.1572); sinc

[Bug middle-end/38868] [4.4 Regression] r143152 breaks output routines in xplor-nih

2009-01-17 Thread burnus at gcc dot gnu dot org
--- Comment #23 from burnus at gcc dot gnu dot org 2009-01-17 22:51 --- Program of comment 19 works here (x86-64) with all options I tried, incl. -m32, -fgraphite-identity etc. - valgrind shows no problems. For the program in attachment 17125 / commment 13: I get the same valgrind

[Bug middle-end/38868] [4.4 Regression] r143152 breaks output routines in xplor-nih

2009-01-18 Thread burnus at gcc dot gnu dot org
--- Comment #31 from burnus at gcc dot gnu dot org 2009-01-18 13:24 --- (In reply to comment #27) > Further reduced test case: Using gfortran on x86-64-linux, I see with -m64 and all -O* a line which ends in " xyz'". However, with -m32 and -O (n >= 2) I only see:

[Bug middle-end/38868] [4.4 Regression] r143152 breaks output routines in xplor-nih

2009-01-18 Thread burnus at gcc dot gnu dot org
--- Comment #32 from burnus at gcc dot gnu dot org 2009-01-18 13:25 --- Created an attachment (id=17134) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17134&action=view) Assembler diff on x86-64-openSUSE Factory with -m32 -O1 (working) and -m32 -O2 (failing) Attac

[Bug fortran/38883] [4.4 Regression] ICE for MVBITS with derived type argument that has run-time subscripts

2009-01-18 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2009-01-18 14:28 --- Slightly reduced test case below. If the FROM= and TO= arguments ("A()%I") are not the same, the program does not ICE. Neither does it if one changes the bound "N2" to "2" (but it

[Bug fortran/38883] [4.4 Regression] ICE for MVBITS with derived type argument that has run-time subscripts

2009-01-18 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2009-01-18 19:16 --- Some more data: Using printf("Node: tmp = %s\n", tree_code_name[TREE_CODE (tmp)]); printf("Node: desc = %s\n", tree_code_name[TREE_CODE (gfc_get_element_type (TREE_TYPE (desc)))]

[Bug fortran/38907] [4.3/4.4 Regression ] ICE when contained function has same name as module function and used in expression

2009-01-18 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2009-01-18 22:27 --- Confirm. Thanks for the report! Valgrind shows: ==20941== Conditional jump or move depends on uninitialised value(s) ==20941==at 0x46C602: gfc_resolve_expr (resolve.c:4353) ==20941==by 0x46BC22

[Bug fortran/38915] wrong results for structure assignment of character components when left and right sides overlap

2009-01-19 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-01-19 18:49 --- Confirm. ICE with 4.1.x and 4.2.x and wrong code with 4.3.x and 4.4. Thanks for the report. -- burnus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/38917] Can't use DATA to initialize pointer to array to NULL()

2009-01-19 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-01-20 07:25 --- Confirm. Thanks for the report. R532 data-stmt-constant is ... or null-init R507 null-init is function-reference C506 (R507) The function-reference shall be a reference to the NULL

[Bug fortran/38918] compile time error for DATA of NULL() to pointer structure component

2009-01-19 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-01-20 07:26 --- Confirm. Thanks for the report. R532 data-stmt-constant is ... or null-init R507 null-init is function-reference C506 (R507) The function-reference shall be a reference to the NULL

[Bug libfortran/38871] [4.4 Regression] libgfortran.so.3 dropped __iso_c_binding_c_f_procpointer@@GFORTRAN_1.0

2009-01-19 Thread burnus at gcc dot gnu dot org
--- Comment #12 from burnus at gcc dot gnu dot org 2009-01-20 07:28 --- Close as WONTFIX based on the general judgment that this is the right or at least an acceptable solution. -- burnus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/38439] I/O PD edit descriptor inconsistency

2009-01-22 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2009-01-22 10:53 --- > Thus: '(1pD24.15)' is valid Fully agreed - that version is valid and accepted with gfortran, ifort, NAG f95 etc. > While: '(1pD24.15e4)' is invalid It is, but as written sunf95/open

[Bug fortran/38936] New: F2003: ASSOCIATE construct

2009-01-22 Thread burnus at gcc dot gnu dot org
144 -- Summary: F2003: ASSOCIATE construct Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu

[Bug fortran/38471] [4.3/4.4 Regression] ICE with subreference pointer assignment

2009-01-23 Thread burnus at gcc dot gnu dot org
-- burnus at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|4.3.3 |4.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38471

[Bug fortran/36874] Add shape checks to cshift/eoshift

2009-01-24 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2009-01-24 19:41 --- (In reply to comment #4) > After adding the the missing checks to gfc_check_cshift() and > gfc_check_eoshift() respectively, I get a couple of errors for > gfortran.dg/zero_sized_1.f90 [...] Thanks! The er

[Bug fortran/38979] New: OpenMP extension:

2009-01-26 Thread burnus at gcc dot gnu dot org
t: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38979

[Bug fortran/38979] OpenMP extension: THREADPRIVATE for EQUIVALENCEd symbols

2009-01-26 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-01-26 18:42 --- Note: The standard does not allow this, see http://www.openmp.org/mp-documents/spec30.pdf, page 94: Section "2.9.2 threadprivate Directive" has under "Restrictions": "A variable can only

[Bug fortran/18918] Eventually support Fortran 2008's coarrays [co-arrays]

2009-01-27 Thread burnus at gcc dot gnu dot org
--- Comment #10 from burnus at gcc dot gnu dot org 2009-01-28 07:11 --- Someone (Toon?) mentioned a plan to make the GOMP backend infrastructure usable for shared memory. I also found the following paper: "Prototyping the automatic generation of MPI code from OpenMP programs in GC

[Bug fortran/39006] New: Wrong result for array(:,ny:1:-1)) as actual argument (inverting order by negative strides)

2009-01-28 Thread burnus at gcc dot gnu dot org
ong result for array(:,ny:1:-1)) as actual argument (inverting order by negative strides) Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: wrong-code Severity: critical Priority: P3 Component: fo

[Bug fortran/39030] New: Support -fexcess-precision={standard,fast} also for Fortran

2009-01-29 Thread burnus at gcc dot gnu dot org
s: wrong-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39030

[Bug fortran/40018] [4.4/4.5 Regression] ICE in output_constructor

2009-05-05 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2009-05-05 09:07 --- Mark as regression based on Dominique's comment. -- burnus at gcc dot gnu dot org changed: What|Removed |

[Bug fortran/40041] spurious warning with INTRINSIC statement

2009-05-06 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-05-06 10:26 --- (In reply to comment #0) > The same warnings are given if the arguments of ABS/MAX are of default-real > kind, so this not related to implicit typing. I have to admit that I don't fully understand that se

[Bug fortran/40039] Procedures as actual arguments: Check intent of arguments

2009-05-06 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-05-06 10:29 --- NAG f95 5.1 gives the following error: Error: line 21: Dummy proc F arg 1 has different INTENT from actual proc FUNC arg Error: line 21: Incompatible procedure argument for F (no. 2) of A After fixing this (intent

[Bug fortran/40041] spurious warning with INTRINSIC statement

2009-05-06 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2009-05-06 14:28 --- > Btw, adding "REAL ABS,MAX" doesn't help either, so it's not related to the > function's types. Well, exactly that should trigger the warning! Thus it shall not help silencing the war

[Bug fortran/40045] ICE with type extension and -fdump-parse-tree

2009-05-06 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2009-05-06 14:39 --- Regarding the segfault, valgrind shows: ==14376== Invalid read of size 1 ==14376==by 0x616A4F7: fprintf (in /lib64/libc-2.9.so) ==14376==by 0x4B4BF1: show_typebound (dump-parse-tree.c:693) The line is

[Bug libgomp/40047] New: [4.5 Regression] ICE for libgomp.c++/task-4.C: type mismatch in indirect reference

2009-05-06 Thread burnus at gcc dot gnu dot org
e-on-valid-code Severity: normal Priority: P3 Component: libgomp AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40047

[Bug libgomp/40047] [4.5 Regression] ICE for libgomp.c++/task-4.C: type mismatch in indirect reference

2009-05-06 Thread burnus at gcc dot gnu dot org
-- burnus at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.5.0 Version|unknown |4.5.0 http

[Bug fortran/40041] spurious warning with INTRINSIC statement

2009-05-06 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2009-05-06 15:45 --- Subject: Bug 40041 Author: burnus Date: Wed May 6 15:44:18 2009 New Revision: 147183 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147183 Log: 2009-05-06 Tobias Burnus PR fortr

[Bug fortran/40041] spurious warning with INTRINSIC statement

2009-05-06 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2009-05-06 15:46 --- FIXED on the trunk (4.5). Thanks for reporting it. Crossref: The warning was added by Daniel Franke with Rev. 126153 for PR 20373. -- burnus at gcc dot gnu dot org changed: What|Removed

[Bug debug/40040] gfortran invalid DW_AT_location for overridable variables

2009-05-06 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2009-05-06 16:40 --- (In reply to comment #2) > The GDB patch now assembles the symbol name from its parent DW_TAG_module as > `__modulename_MOD_varname'. As GDB also has to know the C++ mangling rules I > believe this Fo

[Bug fortran/40054] Fortran 2008: Pointer functions as lvalue

2009-05-07 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-05-07 08:07 --- In the standard: R602 variable is designator or expr C602 (R602) expr shall be a reference to a function that has a pointer result." Which can then be used in assig

[Bug bootstrap/40061] [4.3 Regression] Bootstrap failure in dwarf2out.c, function add_subscript_info: 'dimension_number' undefined

2009-05-07 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-05-07 14:39 --- Confirmed. I need to understand what MIPS_DEBUGGING_INFO means - and why it is not present in 4.4 - but maybe reverting it and suggesting in PR fortran/39791 to use 4.4/4.5 is be safer/better alternative. - Thanks

[Bug bootstrap/40061] [4.3 Regression] Bootstrap failure in dwarf2out.c, function add_subscript_info: 'dimension_number' undefined

2009-05-07 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2009-05-07 14:51 --- Stupid but working fix: Reverting the patch for PR 39791 on MIPS_DEBUGGING_INFO only. I think that's the safest to do - even if it is not the most elegant way of doing it. I don't like backporting Rev. 13

[Bug fortran/38592] eliminate some string comparisons

2009-05-08 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2009-05-08 11:25 --- > > As a matter of curiosity, do other compilers catch this? > Intel does not. Sure? If I look at the assembler of ifort 11.1 with -O3, I only see: call __intel_new_

[Bug fortran/40089] Public type with public component which has a private type

2009-05-11 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-05-11 08:07 --- Without heavily thinking about it: > print *,public_var_with_private_type%i Seems to be valid in Fortran 2003 (but not in 2003). The components are not PRIVATE and thus accessibly, even if the TYPE declaration

[Bug fortran/39791] [4.3 Regression] Bad Dwarf debug information from gfortran for a character string.

2009-05-11 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2009-05-11 09:17 --- The patch caused a regression, see PR 40061 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39791

[Bug fortran/40089] Public type with public component which has a private type

2009-05-11 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2009-05-11 10:20 --- > && !gfc_check_access (c->ts.derived->attr.access, > c->ts.derived->ns->default_access)) > { > - gfc_notify_std (GFC_STD_

[Bug fortran/39997] Procedure(), pointer & implicit typing: rejects-valid / accepts-invalid?

2009-05-11 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2009-05-11 22:56 --- Now tracked as official Interpretation Request. Request: http://www.j3-fortran.org/doc/year/09/09-236.txt (answer = proposed answer by me). Submitted for: J3 MEETING 189 LAS VEGAS, NEVADA, August 10 - 14, 2009 http

[Bug fortran/40110] New: Bind(C): gfortran rejects the questionable but formally correct INTEGER(C_CHAR)

2009-05-11 Thread burnus at gcc dot gnu dot org
Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40110

[Bug fortran/40117] New: F2008: Type-bound procedure: allow list after PROCEDURE

2009-05-12 Thread burnus at gcc dot gnu dot org
2008: Type-bound procedure: allow list after PROCEDURE Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at g

[Bug bootstrap/40061] [4.3 Regression] Bootstrap failure in dwarf2out.c, function add_subscript_info: 'dimension_number' undefined

2009-05-12 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2009-05-12 19:27 --- Subject: Bug 40061 Author: burnus Date: Tue May 12 19:26:46 2009 New Revision: 147445 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147445 Log: 2009-05-12 Tobias Burnus PR bootstr

[Bug bootstrap/40061] [4.3 Regression] Bootstrap failure in dwarf2out.c, function add_subscript_info: 'dimension_number' undefined

2009-05-12 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2009-05-12 19:42 --- FIXED on the 4.3 branch. Thanks for reporting the problem and sorry for the breakage. -- burnus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/34153] Debugging: Cannot set breakpoint in comment lines or "END PROGRAM"

2009-05-12 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2009-05-12 21:10 --- I have a patch for this. Note, however, that the compiler - even with default options - (too) aggressively optimizes your program, i.e. the assignment is optimized away even with -O0 and thus for your program the

[Bug fortran/39489] [4.3 regression] write_atom(): Writing negative integer

2009-05-12 Thread burnus at gcc dot gnu dot org
--- Comment #12 from burnus at gcc dot gnu dot org 2009-05-12 22:05 --- Some more data: ==16952== Conditional jump or move depends on uninitialised value(s) ==16952==at 0x4470FC: write_atom (module.c:1339) ==16952==by 0x4472DD: mio_integer (module.c:1450) ==16952==by

[Bug fortran/40110] Bind(C): gfortran rejects the questionable but formally correct INTEGER(C_CHAR)

2009-05-12 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-05-12 22:43 --- Subject: Bug 40110 Author: burnus Date: Tue May 12 22:42:45 2009 New Revision: 147452 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147452 Log: 2009-05-12 Tobias Burnus PR fortr

[Bug fortran/40110] Bind(C): gfortran rejects the questionable but formally correct INTEGER(C_CHAR)

2009-05-12 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2009-05-12 22:44 --- FIXED on the trunk (4.5). -- burnus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/39782] [4.3/4.4 Regression] IO depends on uninitialised value

2009-05-13 Thread burnus at gcc dot gnu dot org
--- Comment #10 from burnus at gcc dot gnu dot org 2009-05-13 13:47 --- For 4.4 the equivalent diff should be the following (untested). I don't see ad hoc whether the "sfree" can be removed as well or not. Index: libgfortra

[Bug fortran/34153] Debugging: Cannot set breakpoint in comment lines or "END PROGRAM"

2009-05-13 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2009-05-13 14:53 --- Subject: Bug 34153 Author: burnus Date: Wed May 13 14:52:54 2009 New Revision: 147477 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147477 Log: 2009-05-13 Tobias Burnus PR fortr

[Bug fortran/34153] Debugging: Cannot set breakpoint in comment lines or "END PROGRAM"

2009-05-13 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2009-05-13 16:14 --- FIXED on the trunk (4.5). Thanks for the bug report! -- burnus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/39352] gfortran.dg/vect/pr39318.f90 doesn't work on ia64

2009-05-13 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2009-05-14 06:28 --- Patch: http://gcc.gnu.org/ml/fortran/2009-05/msg00163.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39352

[Bug fortran/39352] gfortran.dg/vect/pr39318.f90 doesn't work on ia64

2009-05-14 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2009-05-15 06:53 --- Subject: Bug 39352 Author: burnus Date: Fri May 15 06:52:41 2009 New Revision: 147559 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147559 Log: 2009-05-15 Tobias Burnus PR fortr

[Bug fortran/39352] gfortran.dg/vect/pr39318.f90 doesn't work on ia64

2009-05-14 Thread burnus at gcc dot gnu dot org
--- Comment #6 from burnus at gcc dot gnu dot org 2009-05-15 06:57 --- Fixed on the trunk (4.5). Thanks for reporting HJ and thanks to Steve E. for providing an initial patch, which pointed into the right direction. -- burnus at gcc dot gnu dot org changed: What

[Bug fortran/39997] Procedure(), pointer & implicit typing: rejects-valid / accepts-invalid?

2009-05-15 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2009-05-15 10:32 --- Proc-pointer fun as written by Malcolm Cohen, http://j3-fortran.org/pipermail/j3/2009-May/002755.html If I understood his arguments correctly, even the following Fortran 90 program might be affected: module m

[Bug fortran/40158] New: Misleading error message for passing a scalar to an array

2009-05-15 Thread burnus at gcc dot gnu dot org
y Product: gcc Version: unknown Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40158

[Bug fortran/40165] New: Excessive warnings for REAL DO loops

2009-05-15 Thread burnus at gcc dot gnu dot org
: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org

[Bug fortran/40165] Excessive warnings for REAL DO loops

2009-05-15 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2009-05-15 20:23 --- (In reply to comment #1) > I disagree with you as does the F95 standard Sorry, I cannot find anywhere in the standard that one has to emit four warnings. First, I think that one warning for a real loop variable

[Bug fortran/40167] wrong initialization of local variable in a recursive subroutine

2009-05-17 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2009-05-18 06:41 --- I can reproduce the problem with GCC 4.2.1, but it works with 4.3.3 [gcc-4_3-branch revision 144878]. Thus it seems to be fixed in newer 4.3 versions than your 4.3.0 2008-03-05. And it works in 4.4.x and 4.5. Please

[Bug fortran/40167] wrong initialization of local variable in a recursive subroutine

2009-05-18 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2009-05-18 08:51 --- (In reply to comment #4) > Sorry for this useless bug report Well, the quality of gfortran relies on bug reports. As long as the signal-to-noise ratio does not fall too much, it is better to have one bug invalid

[Bug fortran/38979] OpenMP extension: THREADPRIVATE for EQUIVALENCEd symbols

2009-05-18 Thread burnus at gcc dot gnu dot org
--- Comment #7 from burnus at gcc dot gnu dot org 2009-05-18 16:52 --- Issue brought up by Jakub: do you require all equivalenced vars to be either threadprivate or non-threadprivate? or, does a single threadprivate var make all vars equivalenced somehow to it threadprivate

[Bug fortran/40190] DATE_AND_TIME returns GMT hour sometimes with OpenMP

2009-05-18 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2009-05-18 21:12 --- Confirm. I looked at the source code, but I don't see why it can happen, but it does. -- burnus at gcc dot gnu dot org changed: What|Removed |

<    1   2   3   4   5   6   7   8   9   10   >