gets is not too dangerous

2006-08-31 Thread Miguel Angel Champin Catalan
Hello: We are students of computer sciences in the Santa Maria University, Chile. We just want to know if the function "gets" it's too dangerous for a warning. The fact is that our teacher's assistant give us a homework, and one restriction was to use gcc to compile our code, without warnings

LTO and Code Compaction \ Reverse Inlining \ Procedure Abstraction?

2006-07-15 Thread Miguel Angel
Hello! I have a VERY simple example: int f1 (int i) {i = (i-7)/9+3; return i;} int f2 (int i) {i = (i-7)/9+3; return i;} It could be reduced to: int f1 (int i) {i = (i-7)/9+3; return i;} int f2 (int i) {return f1 (i);} Are there any ideas on how and where to add a target and language independe