File tree 6 files changed +24
-5
lines changed
regression/goto-gcc/at_files
6 files changed +24
-5
lines changed Original file line number Diff line number Diff line change
1
+ other.c
Original file line number Diff line number Diff line change
1
+ int foo ();
2
+
3
+ int main ()
4
+ {
5
+ return foo ();
6
+ }
Original file line number Diff line number Diff line change
1
+ int foo ()
2
+ {
3
+ return 1 ;
4
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ main.c
3
+ @args
4
+ ^EXIT=0$
5
+ ^SIGNAL=0$
6
+ --
7
+ ^warning: ignoring
8
+ ^CONVERSION ERROR$
Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ bool gcc_cmdlinet::parse_arguments(
256
256
line.erase (0 , line.find_first_not_of (" \t " ));
257
257
258
258
if (!line.empty ())
259
- parse_specs_line (line);
259
+ parse_specs_line (line, false );
260
260
}
261
261
262
262
continue ;
@@ -432,7 +432,7 @@ bool gcc_cmdlinet::parse_arguments(
432
432
}
433
433
434
434
// / Parse GCC spec files https://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html
435
- void gcc_cmdlinet::parse_specs_line (const std::string &line)
435
+ void gcc_cmdlinet::parse_specs_line (const std::string &line, bool in_spec_file )
436
436
{
437
437
// initial whitespace has been stripped
438
438
assert (!line.empty ());
@@ -448,7 +448,7 @@ void gcc_cmdlinet::parse_specs_line(const std::string &line)
448
448
args.push_back (line.substr (arg_start, arg_end-arg_start));
449
449
}
450
450
451
- parse_arguments (args, true );
451
+ parse_arguments (args, in_spec_file );
452
452
}
453
453
454
454
// / Parse GCC spec files https://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html
@@ -477,7 +477,7 @@ void gcc_cmdlinet::parse_specs()
477
477
line==" *link:" ))
478
478
use_line=true ;
479
479
else if (use_line)
480
- parse_specs_line (line);
480
+ parse_specs_line (line, true );
481
481
else
482
482
{
483
483
// TODO need message interface
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class gcc_cmdlinet:public goto_cc_cmdlinet
31
31
32
32
bool parse_arguments (const argst &args, bool in_spec_file);
33
33
void parse_specs ();
34
- void parse_specs_line (const std::string &line);
34
+ void parse_specs_line (const std::string &line, bool in_spec_file );
35
35
};
36
36
37
37
#endif // CPROVER_GOTO_CC_GCC_CMDLINE_H
You can’t perform that action at this time.
0 commit comments