summaryrefslogtreecommitdiff
path: root/gcc/fortran/options.c
diff options
context:
space:
mode:
authortobi <tobi@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-28 13:17:07 +0000
committertobi <tobi@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-28 13:17:07 +0000
commit59c3f3e8855fee29367711a21ad353f54b5bf9ca (patch)
tree473f4663f665925632fbab10b775af4f72623108 /gcc/fortran/options.c
parent375c1c8af9bf76d2c619e056ff3d9c94e28039aa (diff)
downloadgcc-59c3f3e8855fee29367711a21ad353f54b5bf9ca.tar.gz
* options.c (gfc_handle_option): Ensure requested free form line
length is not too small. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124260 138bc75d-0d04-0410-961f-82ee72b054a4
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 31c40768624..fbcb94e0886 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;