Skip to content

Commit

Permalink
Remove duplicate definitions when building cc1/test
Browse files Browse the repository at this point in the history
And prevent this in future with -fno-common
  • Loading branch information
bobrippling committed Jun 3, 2021
1 parent 4975f1e commit 18b4d3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ try_cflag -Wshadow-compatible-local

try_cflag -Werror=incompatible-pointer-types

try_cflag -fno-common

if test $debug = 1
then
try_cflag -g
Expand Down
2 changes: 0 additions & 2 deletions src/cc1/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ enum debug_level cc1_gdebug = DEBUG_OFF;
int cc1_gdebug_columninfo;
int cc1_mstack_align;
enum c_std cc1_std = STD_C99;
struct cc1_warning cc1_warning;
struct cc1_output cc1_output;
dynmap *cc1_outsections;
struct cc1_fopt cc1_fopt;
enum mopt mopt_mode;
int show_current_line;
char *cc1_sanitize_handler_fn;
enum visibility cc1_visibility_default;
struct target_details cc1_target_details;
enum stringop_strategy cc1_mstringop_strategy = STRINGOP_STRATEGY_THRESHOLD;
Expand Down

0 comments on commit 18b4d3f

Please sign in to comment.