[Bug c/23104] [4.2/4.3/4.4 Regression] C does not reject the same function in two different TUs with -combine

2008-07-14 Thread nightstrike at gmail dot com


--- Comment #12 from nightstrike at gmail dot com  2008-07-14 17:09 ---
On 4.2.4 and 4.3.1, I get this:

$  cat  a.c
int f(void) {}

$  cat  b.c
int f(void) {}

$ /opt/cfarm/release/4.3.1/bin/gcc -combine a.c b.c
a.c:2: error: redefinition of 'f'
a.c:1: error: previous definition of 'f' was here


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23104



[Bug c/23104] [4.2/4.3/4.4 Regression] C does not reject the same function in two different TUs with -combine

2008-07-04 Thread jsm28 at gcc dot gnu dot org


--- Comment #11 from jsm28 at gcc dot gnu dot org  2008-07-04 19:58 ---
Closing 4.1 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

   What|Removed |Added

Summary|[4.1/4.2/4.3/4.4 Regression]|[4.2/4.3/4.4 Regression] C
   |C does not reject the same  |does not reject the same
   |function in two different   |function in two different
   |TUs with -combine   |TUs with -combine
   Target Milestone|4.1.3   |4.2.5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23104