Skip to content

Commit d15165a

Browse files
committed
fbc: allow command line options passed to as, gcc, ld to be longer than 128 characters
- fixes github # 298: -Wc has a limit of 128 characters - previously fbc used fixed length strings of 128 bytes to hold the options to as, gcc, and ld - now uses variable length string instead
1 parent 2343df4 commit d15165a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Version 1.08.0
4545
- github #203: allow casts of addresses on static initializers
4646
- only write debug line information for statements and don't write comments / empty lines / directives for top level source code in assembly debug ouput
4747
- optimize byref 'm += s' string concatenations to fb_StrConcatByref() which will check for same string descriptor at run-time which can't be determined at compile time for byref parameters.
48+
- github #298: allow command line options passed to as, gcc, ld to be longer than 128 characters by using string types internally
4849

4950
[added]
5051
- extern "rtlib": respects the parent namespace, uses default fb calling convention and C style name mangling

src/compiler/fbc.bas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ enum
2525
end enum
2626

2727
type FBC_EXTOPT
28-
gas as zstring * 128
29-
ld as zstring * 128
30-
gcc as zstring * 128
28+
gas as string
29+
ld as string
30+
gcc as string
3131
end type
3232

3333
type FBCIOFILE

0 commit comments

Comments
 (0)