This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

CLI-FE merge 4.3 to 4.5


Hello,
We have just merged the branch st/cli-fe (a gcc front end for CLI)
from a 4.3 realse to 4.5.
This merge has broken the compiler and for a simple helloworld test it
fails with the error
cil1: internal compiler error: in execute_one_pass, at passes.c:1525
This error is reporting that the 'cfun' variable is not set correctly.
I have observed that IPA passes are being executed (even when i
attempt to turn them off with the relevant -fno-ipa-* flags). Setting
of both cfun and current_function_declaration remains the same now as
before the merge (with the exception that we now use
the updated API for set_cfun).
I have three questions:
1. What is the correct behaviour for a FE in terms of setting the
global variables cfun and current_function_declaration?
2. It seems that the new api for set_cfun has some side effects on
optimization flags? is this correct?
3. How should DECL_FUNCTION_SPECIFIC_
OPTIMIZATION be controled, should the front end be setting these per
function? (I am looking to avoid IPA passes for now)
Thank you in advance,
Kevin

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

AltStyle によって変換されたページ (->オリジナル) /