User account creation filtered due to spam.

Bug 35844 - Overwriting the -std= option at runtime via environment variable
Summary: Overwriting the -std= option at runtime via environment variable
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: libfortran (show other bugs)
Version: 4.4.0
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
Keywords: documentation
Depends on:
Reported: 2008-04-06 15:42 UTC by Tobias Burnus
Modified: 2009-03-28 15:40 UTC (History)
1 user (show)

See Also:
Known to work:
Known to fail:
Last reconfirmed: 2009-03-28 15:40:21


Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Burnus 2008-04-06 15:42:49 UTC
I think it makes sense to be able to overwrite the Fortran standard passed to the library (f95, f2003, f2008, gnu, legacy). The reason is that we have several cases where with -std=f95 GNU extensions are rejected. I think not all users are aware of this and combining a compliant Fortran program with libraries which are not can potentially cause problems. And if the source code is not available ...

I therefore think it makes sense to:

a) Note the fact that -std= can change the library behaviour, esp. -std=f95 can reject F2003 or GNU features.

b) Allow the user to overwrite it using an environment variable
Comment 1 Francois-Xavier Coudert 2009-03-28 15:40:21 UTC
Confirmed. I think both the rationale and the proposed actions are clear and sound.