public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36342]  New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input'
@ 2008-05-27 11:58 P dot Schaffnit at access dot rwth-aachen dot de
  2008-05-27 15:22 ` [Bug fortran/36342] " dfranke at gcc dot gnu dot org
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: P dot Schaffnit at access dot rwth-aachen dot de @ 2008-05-27 11:58 UTC (permalink / raw)
  To: gcc-bugs

Hi!

'-cpp' or '-x f95-cpp-input' seem to damage compilation warning (locus?), one
can certainly live with it, but this is a bit annoying...

Thanks!

Philippe

PS:

cat Check_Warnings.f90
!
      PROGRAM Test
!
      IMPLICIT NONE
!
      INTEGER ::   Junk_1, Junk_2, Junk_3
!
      Junk_1 = Junk_2
!
      END PROGRAM Test
!

gfortran -g -Wall -O1 -c Check_Warnings.f90
Check_Warnings.f90: In function 'test':
Check_Warnings.f90:9: warning: 'junk_2' is used uninitialized in this function

gfortran -g -Wall -O1 -cpp -c Check_Warnings.f90

: In function 'test':

:9: warning: 'junk_2' is used uninitialized in this function

gfortran -g -Wall -O1 -x f95-cpp-input -c Check_Warnings.f90

: In function 'test':

:9: warning: 'junk_2' is used uninitialized in this function


gfortran --version
GNU Fortran (GCC) 4.4.0 20080527 (experimental) [trunk revision 135966]
...


-- 
           Summary: Missing file name in compilation diagnostics with '-cpp'
                    or '-x f95-cpp-input'
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: P dot Schaffnit at access dot rwth-aachen dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug fortran/36342] Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input'
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
@ 2008-05-27 15:22 ` dfranke at gcc dot gnu dot org
  2008-05-28 11:06 ` P dot Schaffnit at access dot rwth-aachen dot de
                   ` (18 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2008-05-27 15:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dfranke at gcc dot gnu dot org  2008-05-27 15:21 -------
Confirmed. Will have a look.

Invalid read of size 1
==1283==    at 0x40239A8: strlen (mc_replace_strmem.c:242)
==1283==    by 0x40F14CE: vfprintf (in /lib/libc-2.6.1.so)
==1283==    by 0x41108FB: vasprintf (in /lib/libc-2.6.1.so)
==1283==    by 0x8197F3E: build_message_string (diagnostic.c:73)
==1283==    by 0x8197D41: warning (diagnostic.c:485)
==1283==  Address 0x425d318 is 0 bytes inside a block of size 2 free'd
==1283==    at 0x402264C: free (vg_replace_malloc.c:323)
==1283==    by 0x80B7BFC: preprocessor_line (scanner.c:1644)


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |dfranke at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-05-27 15:21:32
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug fortran/36342] Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input'
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
  2008-05-27 15:22 ` [Bug fortran/36342] " dfranke at gcc dot gnu dot org
@ 2008-05-28 11:06 ` P dot Schaffnit at access dot rwth-aachen dot de
  2008-06-02 18:56 ` [Bug middle-end/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source dfranke at gcc dot gnu dot org
                   ` (17 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: P dot Schaffnit at access dot rwth-aachen dot de @ 2008-05-28 11:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from P dot Schaffnit at access dot rwth-aachen dot de  2008-05-28 11:06 -------
Thanks!

Philippe


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug middle-end/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
  2008-05-27 15:22 ` [Bug fortran/36342] " dfranke at gcc dot gnu dot org
  2008-05-28 11:06 ` P dot Schaffnit at access dot rwth-aachen dot de
@ 2008-06-02 18:56 ` dfranke at gcc dot gnu dot org
  2008-06-06  8:27 ` dfranke at gcc dot gnu dot org
                   ` (16 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2008-06-02 18:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from dfranke at gcc dot gnu dot org  2008-06-02 18:55 -------
This was reported before the libcpp integration [1]. Probably not a fortran
problem at all as it is a warning issued by the middle-end. This did work
properly in 4.2 and 4.3. 

Unassigning myself and moving to middle-end.


[1] http://gcc.gnu.org/ml/fortran/2008-05/msg00140.html


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org
         AssignedTo|dfranke at gcc dot gnu dot  |unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW
          Component|fortran                     |middle-end
      Known to fail|                            |4.4.0
      Known to work|                            |4.2.5 4.3.1
            Summary|Missing file name in        |[4.4 Regression] Missing
                   |compilation diagnostics with|file name in compilation
                   |'-cpp' or '-x f95-cpp-input'|diagnostics of preprocessed
                   |                            |fortran source


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug middle-end/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
                   ` (2 preceding siblings ...)
  2008-06-02 18:56 ` [Bug middle-end/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source dfranke at gcc dot gnu dot org
@ 2008-06-06  8:27 ` dfranke at gcc dot gnu dot org
  2008-06-06  8:30 ` P dot Schaffnit at access dot rwth-aachen dot de
                   ` (15 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2008-06-06  8:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dfranke at gcc dot gnu dot org  2008-06-06 08:26 -------
Currently doing reghunt: r134936 works, r135050 fails.
Expect more results later ...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug middle-end/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
                   ` (3 preceding siblings ...)
  2008-06-06  8:27 ` dfranke at gcc dot gnu dot org
@ 2008-06-06  8:30 ` P dot Schaffnit at access dot rwth-aachen dot de
  2008-06-06 10:42 ` [Bug fortran/36342] " dfranke at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: P dot Schaffnit at access dot rwth-aachen dot de @ 2008-06-06  8:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from P dot Schaffnit at access dot rwth-aachen dot de  2008-06-06 08:30 -------
Thanks!

Philippe


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug fortran/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
                   ` (4 preceding siblings ...)
  2008-06-06  8:30 ` P dot Schaffnit at access dot rwth-aachen dot de
@ 2008-06-06 10:42 ` dfranke at gcc dot gnu dot org
  2008-06-11 11:13 ` jsm28 at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2008-06-06 10:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from dfranke at gcc dot gnu dot org  2008-06-06 10:41 -------
Back to fortran ...

------------------------------------------------------------------------
r134992 | fxcoudert | 2008-05-06 20:28:32 +0200 (Tue, 06 May 2008) | 45 lines

Added FX as CC.


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org
          Component|middle-end                  |fortran


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug fortran/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
                   ` (5 preceding siblings ...)
  2008-06-06 10:42 ` [Bug fortran/36342] " dfranke at gcc dot gnu dot org
@ 2008-06-11 11:13 ` jsm28 at gcc dot gnu dot org
  2008-06-13 21:19 ` burnus at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-06-11 11:13 UTC (permalink / raw)
  To: gcc-bugs



-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug fortran/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
                   ` (6 preceding siblings ...)
  2008-06-11 11:13 ` jsm28 at gcc dot gnu dot org
@ 2008-06-13 21:19 ` burnus at gcc dot gnu dot org
  2008-06-16 17:57 ` burnus at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-06-13 21:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from burnus at gcc dot gnu dot org  2008-06-13 21:19 -------
Works for me. Possibly fixed by PR preprocessor/36479.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug fortran/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
                   ` (7 preceding siblings ...)
  2008-06-13 21:19 ` burnus at gcc dot gnu dot org
@ 2008-06-16 17:57 ` burnus at gcc dot gnu dot org
  2008-06-16 20:23 ` pault at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-06-16 17:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from burnus at gcc dot gnu dot org  2008-06-16 17:56 -------
Mark as waiting. Can any of you try whether the bug still exists for you?


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug fortran/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
                   ` (8 preceding siblings ...)
  2008-06-16 17:57 ` burnus at gcc dot gnu dot org
@ 2008-06-16 20:23 ` pault at gcc dot gnu dot org
  2008-06-16 21:50 ` dfranke at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: pault at gcc dot gnu dot org @ 2008-06-16 20:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from pault at gcc dot gnu dot org  2008-06-16 20:22 -------
(In reply to comment #8)
> Mark as waiting. Can any of you try whether the bug still exists for you?
> 

This works for me - x86_ia64/Fedora8 - gcc version 4.4.0 20080615

Taking a risk, given Tobias' report - marking as fixed.

Paul 


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug fortran/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
                   ` (9 preceding siblings ...)
  2008-06-16 20:23 ` pault at gcc dot gnu dot org
@ 2008-06-16 21:50 ` dfranke at gcc dot gnu dot org
  2008-06-18  7:18 ` pault at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2008-06-16 21:50 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 843 bytes --]



------- Comment #10 from dfranke at gcc dot gnu dot org  2008-06-16 21:49 -------
Reopened. I can still observe the problem with trunk from 20080615 (r136827).

$> gfortran-svn -O -Wall ~/pr/pr36342.F90
ž: In function 'test':
hqë·š:4: warning: 'junk_2' is used uninitialized in this function

In addition, the invalid reads are still shown by valgrind.

FX, could you have a look which part of your patch (r134992, one of the
wide-char patches I think) might have introduced the problem?


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug fortran/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
                   ` (10 preceding siblings ...)
  2008-06-16 21:50 ` dfranke at gcc dot gnu dot org
@ 2008-06-18  7:18 ` pault at gcc dot gnu dot org
  2008-06-18  7:21 ` P dot Schaffnit at access dot rwth-aachen dot de
                   ` (7 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: pault at gcc dot gnu dot org @ 2008-06-18  7:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from pault at gcc dot gnu dot org  2008-06-18 07:17 -------
(In reply to comment #10)
> Reopened. 

Hah! OK - thanks

Paul *with tail between his legs*


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug fortran/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
                   ` (11 preceding siblings ...)
  2008-06-18  7:18 ` pault at gcc dot gnu dot org
@ 2008-06-18  7:21 ` P dot Schaffnit at access dot rwth-aachen dot de
  2008-06-18 15:44 ` burnus at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: P dot Schaffnit at access dot rwth-aachen dot de @ 2008-06-18  7:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from P dot Schaffnit at access dot rwth-aachen dot de  2008-06-18 07:20 -------

Hi!

Stupid question: is it related to
http://gcc.gnu.org/ml/fortran/2008-06/msg00203.html ?

Philippe


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug fortran/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
                   ` (12 preceding siblings ...)
  2008-06-18  7:21 ` P dot Schaffnit at access dot rwth-aachen dot de
@ 2008-06-18 15:44 ` burnus at gcc dot gnu dot org
  2008-06-18 16:49 ` dfranke at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-06-18 15:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from burnus at gcc dot gnu dot org  2008-06-18 15:43 -------
(In reply to comment #10)
> Reopened. I can still observe the problem with trunk from 20080615 (r136827).

Can you post some more debug information? As written, I cannot reproduce it
here anymore with 4.4.0 20080616 trunk revision 136838 on x86-64 - not even
with valgrind. (I used to be able to reproduce it.) I also tried several
locales.

Question: I get the following:
  /tmp/ccpoBhQR.f90:8: warning: 'junk_2' is used uninitialized in this function
What puzzles me is that one gets a /tmp/... filename and not the filename one
passed to "gfortran -cpp". Is this expected? I thought that when using libcpp
directly, no temporary file is written anymore.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug fortran/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
                   ` (13 preceding siblings ...)
  2008-06-18 15:44 ` burnus at gcc dot gnu dot org
@ 2008-06-18 16:49 ` dfranke at gcc dot gnu dot org
  2008-06-20 14:01 ` laurynas dot biveinis at gmail dot com
                   ` (4 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2008-06-18 16:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from dfranke at gcc dot gnu dot org  2008-06-18 16:48 -------
> Question: I get the following:
>   /tmp/ccpoBhQR.f90:8: warning: 'junk_2' is used uninitialized in this function
> What puzzles me is that one gets a /tmp/... filename and not the filename one
> passed to "gfortran -cpp". Is this expected? I thought that when using libcpp
> directly, no temporary file is written anymore.

Heisenbug it seems. On x86_64 (20080617) I get:
$> gfortran-svn -Wall -O pr36342.F90
pr36342.F90: In function 'test':
pr36342.F90:4: warning: 'junk_2' is used uninitialized in this function

Running f951 as output by "gfortran [...] -v" gives:
pr36342.F90: In function 'test':
pr36342.F90:4: warning: 'junk_2' is used uninitialized in this function

BUT, prefixing valgrind (otherwise identical to the call above) results in:
/tmp/ccIl84Yu.f90: In function 'test':
/tmp/ccIl84Yu.f90:4: warning: 'junk_2' is used uninitialized in this function

In addition, valgrind shows multiple invalid-reads as quoted in earlier
comments.



$> gfortran-svn -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /data/home/daniel/svn/gcc-svn/configure
--prefix=/data/home/daniel/x86_64-unknown-linux-gnu/gcc --program-suffix=-svn
--with-gmp=/data/home/daniel/x86_64-unknown-linux-gnu/gmp-4.2.1
--with-mpfr=/data/home/daniel/x86_64-unknown-linux-gnu/mpfr-2.2.1
--with-system-zlib --enable-bootstrap --enable-threads=posix --enable-shared
--enable-version-specific-runtime-libs --enable-languages=c,fortran
--disable-nls --disable-multilib --disable-libmudflap
Thread model: posix
gcc version 4.4.0 20080617 (experimental) (GCC)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug fortran/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
                   ` (14 preceding siblings ...)
  2008-06-18 16:49 ` dfranke at gcc dot gnu dot org
@ 2008-06-20 14:01 ` laurynas dot biveinis at gmail dot com
  2008-07-17 13:31 ` burnus at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: laurynas dot biveinis at gmail dot com @ 2008-06-20 14:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from laurynas dot biveinis at gmail dot com  2008-06-20 14:00 -------
Junk output and valgrind errors should be fixed by a patch for PR fortran/34908
and PR fortran/36276. The /tmp/... file name issue needs additional fixing
though.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug fortran/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
                   ` (15 preceding siblings ...)
  2008-06-20 14:01 ` laurynas dot biveinis at gmail dot com
@ 2008-07-17 13:31 ` burnus at gcc dot gnu dot org
  2008-07-18 16:51 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-07-17 13:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from burnus at gcc dot gnu dot org  2008-07-17 13:30 -------
The problem seems to be this code in scanner.c's gfc_new_file:

  if (gfc_cpp_enabled ())
    {
      result = gfc_cpp_preprocess (gfc_source_file);
      if (!gfc_cpp_preprocess_only ())
        result = load_file (gfc_cpp_temporary_file (), true);
    }
  else
    result = load_file (gfc_source_file, true);


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug fortran/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
                   ` (16 preceding siblings ...)
  2008-07-17 13:31 ` burnus at gcc dot gnu dot org
@ 2008-07-18 16:51 ` rguenth at gcc dot gnu dot org
  2008-07-19 18:28 ` burnus at gcc dot gnu dot org
  2008-07-19 18:31 ` burnus at gcc dot gnu dot org
  19 siblings, 0 replies; 21+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-07-18 16:51 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug fortran/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
                   ` (17 preceding siblings ...)
  2008-07-18 16:51 ` rguenth at gcc dot gnu dot org
@ 2008-07-19 18:28 ` burnus at gcc dot gnu dot org
  2008-07-19 18:31 ` burnus at gcc dot gnu dot org
  19 siblings, 0 replies; 21+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-07-19 18:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #17 from burnus at gcc dot gnu dot org  2008-07-19 18:27 -------
Subject: Bug 36342

Author: burnus
Date: Sat Jul 19 18:27:00 2008
New Revision: 137985

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=137985
Log:
2008-07-19  Tobias Burnus  <burnus@net-b.de>

        PR fortran/36342
        * scanner.c (load_file): Add argument to destinguish between
        true filename and displayed filename.
        (include_line,gfc_new_file): Adapt accordingly.


Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/scanner.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug fortran/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source
  2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
                   ` (18 preceding siblings ...)
  2008-07-19 18:28 ` burnus at gcc dot gnu dot org
@ 2008-07-19 18:31 ` burnus at gcc dot gnu dot org
  19 siblings, 0 replies; 21+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-07-19 18:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #18 from burnus at gcc dot gnu dot org  2008-07-19 18:30 -------
FIXED on the trunk (4.4) [4.3 is not effected].


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36342


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2008-07-19 18:31 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-27 11:58 [Bug fortran/36342] New: Missing file name in compilation diagnostics with '-cpp' or '-x f95-cpp-input' P dot Schaffnit at access dot rwth-aachen dot de
2008-05-27 15:22 ` [Bug fortran/36342] " dfranke at gcc dot gnu dot org
2008-05-28 11:06 ` P dot Schaffnit at access dot rwth-aachen dot de
2008-06-02 18:56 ` [Bug middle-end/36342] [4.4 Regression] Missing file name in compilation diagnostics of preprocessed fortran source dfranke at gcc dot gnu dot org
2008-06-06  8:27 ` dfranke at gcc dot gnu dot org
2008-06-06  8:30 ` P dot Schaffnit at access dot rwth-aachen dot de
2008-06-06 10:42 ` [Bug fortran/36342] " dfranke at gcc dot gnu dot org
2008-06-11 11:13 ` jsm28 at gcc dot gnu dot org
2008-06-13 21:19 ` burnus at gcc dot gnu dot org
2008-06-16 17:57 ` burnus at gcc dot gnu dot org
2008-06-16 20:23 ` pault at gcc dot gnu dot org
2008-06-16 21:50 ` dfranke at gcc dot gnu dot org
2008-06-18  7:18 ` pault at gcc dot gnu dot org
2008-06-18  7:21 ` P dot Schaffnit at access dot rwth-aachen dot de
2008-06-18 15:44 ` burnus at gcc dot gnu dot org
2008-06-18 16:49 ` dfranke at gcc dot gnu dot org
2008-06-20 14:01 ` laurynas dot biveinis at gmail dot com
2008-07-17 13:31 ` burnus at gcc dot gnu dot org
2008-07-18 16:51 ` rguenth at gcc dot gnu dot org
2008-07-19 18:28 ` burnus at gcc dot gnu dot org
2008-07-19 18:31 ` burnus at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).