diff options
author | Richard Biener <rguenther@suse.de> | 2023-01-19 08:44:25 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-01-23 08:27:19 +0100 |
commit | 106f99406312d7ed47434de53c180718225ffa5e (patch) | |
tree | 0e187daf09c4c9d0474346a5ca312b6bf987ced7 /gcc/fortran | |
parent | e61d43791e0943414d33c96de1dd4bfe5f611e29 (diff) | |
download | gcc-106f99406312d7ed47434de53c180718225ffa5e.zip gcc-106f99406312d7ed47434de53c180718225ffa5e.tar.gz gcc-106f99406312d7ed47434de53c180718225ffa5e.tar.bz2 |
tree-optimization/108449 - keep maybe_special_function_p behavior
When we have a static declaration without definition we diagnose
that and turn it into an extern declaration. That can alter
the outcome of maybe_special_function_p here and there's really
no point in doing that, so don't.
PR tree-optimization/108449
* cgraphunit.cc (check_global_declaration): Do not turn
undefined statics into externs.
* gcc.dg/pr108449.c: New testcase.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions