projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b863ba4
)
- warn if a config file could not be opened
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Tue, 14 Oct 2008 01:08:32 +0000
(
01:08
+0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Tue, 14 Oct 2008 01:08:32 +0000
(
01:08
+0000)
[r22860]
ir/be/bemain.c
patch
|
blob
|
history
diff --git
a/ir/be/bemain.c
b/ir/be/bemain.c
index
391d136
..
6fb7677
100644
(file)
--- a/
ir/be/bemain.c
+++ b/
ir/be/bemain.c
@@
-881,11
+881,13
@@
void be_main(FILE *file_handle, const char *cup_name)
/* The user specified another config file to read. do that now. */
if (config_file[0] != '\0') {
- FILE *f;
+ FILE *f
= fopen(config_file, "rt")
;
- if (
(f = fopen(config_file, "rt"))
!= NULL) {
+ if (
f
!= NULL) {
lc_opt_from_file(config_file, f, NULL);
fclose(f);
+ } else {
+ fprintf(stderr, "Warning: Cannot open config file '%s'\n", config_file);
}
}