Bug 34669 - libgfortran doesn't build with -pipe
Summary: libgfortran doesn't build with -pipe
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libfortran (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: ---
Assignee: Steven Bosscher
URL:
Keywords: build
Depends on:
Blocks:
 
Reported: 2008-01-04 10:35 UTC by Francois-Xavier Coudert
Modified: 2008-01-16 09:19 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2008-01-04 15:01:56


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francois-Xavier Coudert 2008-01-04 10:35:47 UTC
(Report initially found at http://groups.google.com/group/comp.lang.fortran/browse_frm/thread/f9d7753cad4d9708/37f0d91ea07e38a1?tvc=1#37f0d91ea07e38a1 and http://groups.google.com/group/comp.lang.fortran/browse_frm/thread/f9d7753cad4d9708/37f0d91ea07e38a1?tvc=1#37f0d91ea07e38a1)

When configured with CFLAGS=-pipe and FFLAGS=-pipe, kinds.h contains:
  #define GFC_REAL_4_HUGE f
instead of:
  #define GFC_REAL_4_HUGE 3.40282347e38f

Somehow, mk-kinds-h.sh doesn't run well when the compiler is invoked with -pipe. I haven't tested this myself, but it most probably is target-independent.
Comment 1 Steven Bosscher 2008-01-04 15:01:55 UTC
I think I understand why this happens...
Comment 2 Steven Bosscher 2008-01-06 22:40:21 UTC
See http://gcc.gnu.org/ml/fortran/2008-01/msg00067.html
Comment 3 Tobias Burnus 2008-01-16 09:14:18 UTC
Subject: Bug 34669

Author: burnus
Date: Wed Jan 16 09:13:39 2008
New Revision: 131567

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131567
Log:
2008-01-16  Steven Bosscher  <steven@gcc.gnu.org>

        PR libfortran/34669
        * mk-kinds-h.sh: Compile with -S to avoid calling the assembler,
        to avoid piping the -fdump-parse-tree output to the assembler
        when configuring with -pipe.
        * mk-sik-inc.sh: Likewise.
        * mk-srk-inc.sh: Likewise.


Modified:
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/mk-kinds-h.sh
    trunk/libgfortran/mk-sik-inc.sh
    trunk/libgfortran/mk-srk-inc.sh

Comment 4 Tobias Burnus 2008-01-16 09:19:18 UTC
FIXED on the trunk (4.3.0).