aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/options.c
diff options
context:
space:
mode:
authorTobias Schlüter <tobi@gcc.gnu.org>2007-04-28 15:17:07 +0200
committerTobias Schlüter <tobi@gcc.gnu.org>2007-04-28 15:17:07 +0200
commit27fabb5a627dda3538013b2737a131c6a91cf23c (patch)
tree473f4663f665925632fbab10b775af4f72623108 /gcc/fortran/options.c
parent55e092c4d004553a8b4e160f8132c8fd31d95af3 (diff)
downloadgcc-27fabb5a627dda3538013b2737a131c6a91cf23c.zip
gcc-27fabb5a627dda3538013b2737a131c6a91cf23c.tar.gz
gcc-27fabb5a627dda3538013b2737a131c6a91cf23c.tar.bz2
options.c (gfc_handle_option): Ensure requested free form line length is not too small.
* options.c (gfc_handle_option): Ensure requested free form line length is not too small. From-SVN: r124260
Diffstat (limited to 'gcc/fortran/options.c')
-rw-r--r--gcc/fortran/options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
index 31c4076..fbcb94e 100644
--- a/gcc/fortran/options.c
+++ b/gcc/fortran/options.c
@@ -538,6 +538,8 @@ gfc_handle_option (size_t scode, const char *arg, int value)
break;
case OPT_ffree_line_length_:
+ if (value != 0 && value < 4)
+ gfc_fatal_error ("Free line length must be at least three.");
gfc_option.free_line_length = value;
break;