aboutsummaryrefslogtreecommitdiff
path: root/Tools/CodeGen/CodeGenC.m
Commit message (Collapse)AuthorAge
* CodeGenC.m: Make const optional in DeclareAssignVariableIan Hinder2013-09-06
|
* Add "default" statement to switch statements, aborting the codeErik Schnetter2013-07-28
| | | | This avoids compiler warnings since it tells the compiler that one case will match.
* Add braces around case blocksErik Schnetter2013-07-28
| | | | Otherwise one cannot declare variables there.
* Clean up several ATTRIBUTE_UNUSED and BUILTIN_UNREACHABLEErik Schnetter2013-07-28
|
* Use const qualifier before type name, not after type nameErik Schnetter2013-07-28
| | | | E.g. change "int const" to "const int". Blue Gene/Q requires this for vector types.
* Remove some const declarations; these lead to compiler errors with IBM's ↵Erik Schnetter2012-12-21
| | | | compiler on the Blue Gene/Q
* Use CCTK_ATTRIBUTE_UNUSED to mark declared variables as unusedIan Hinder2012-11-19
| | | | In automatically-generated code, it is often convenient to declare variables unconditionally, and let the compiler strip the unused definitions out. Eventually it would be good to tidy up Kranc so that it only declares variables which are actually needed, but for the moment it is more important to reduce the number of warnings generated during compilation, to encourage users to read the warnings that might actually indicate a problem.
* CodeGenC.m: Eliminate messages about source languageIan Hinder2011-11-29
| | | C is the only language that currently works
* Make InsertComment externally visibleIan Hinder2011-10-28
|
* CodeGen*.m: Use DefFn to define functionsIan Hinder2011-10-07
|
* Split CodeGen.m into CodeGen.m, CodeGenC.m and CodeGenCactus.mIan Hinder2011-10-07
- CodeGenC.m still contains Fortran variants. These might be moved into CodeGenFortran.m. - Several other modules essentially need to pull in all three packages due to newly broken abstraction barriers. This can be fixed incrementally. - Indent and format all three files consistently