summaryrefslogtreecommitdiff
path: root/usr.bin/pcc
AgeCommit message (Collapse)Author
2007-11-19Pull from master repo:Stefan Kempf
>Fix type conversion problems observed by stefan@ >Some other typos too. and >- Add rules for conversion from (u)long long to (u){char,short,int} >- Fix loading ushorts from mem. They don't need to be sign-extended. >- Fix a rule that didn't load small negative 64-bit values into > registers correctly (there's at least one more of it left). >- Add $Id$ > >ok gmcgarry, otto
2007-11-18(Large) update from master repo:Anders Magnusson
> Use structure assignment instead of calling memcpy directly in struct return. > Rewrite enum handling. > In C99 enums are treated like INTs so convert them early to int. > Move the enum tag handling out of defid(), tags are in their own namespace. > This will be done with struct/union tags also. > Comment out enum types. > Remove ENUMTY/MOETY from target code.
2007-11-17strings.h is obsolete; include string.hOtto Moerbeek
2007-11-17Updates from master repo:Anders Magnusson
Replace ugly target macros with function calls (gmcgarry).
2007-11-17Updates from master repo:Anders Magnusson
Remove function arg conversions from clocal().
2007-11-16hppa backend; does not build yet suince it needs some mi changesOtto Moerbeek
2007-11-16sync tree with master repo; Nov 16 2007Otto Moerbeek
2007-11-16sync with repo and brink in hppa backend from mickey. afaik, it needsOtto Moerbeek
some changes in the mi parts that are not yet committed
2007-11-16sync with repe; commit from gmcgarry@:Otto Moerbeek
Bring MIPS support fully up-to-date. Includes the following changes: Support use of different assemblers. Handle big-endian and little-endian code generation. Start support for n32/n64 PIC code generation Update to arguments-in-registers infrastructure. Cleanup handling of branches. Fix register coloring Fix structure assignment. Add longlong instructions Remove unused functions. Indentation fixes. Tested on NetBSD/pmax (little endian).
2007-11-10Pull from master repo:Stefan Kempf
++ and -- are not allowed in preprocessor expressions. Based on a diff by Jan Kryl. ok ragge@, otto@
2007-11-10Pull from master repo:Stefan Kempf
Get rid of ifdef'd out code. Replace nodup() call with equivalent code at its only invocation. ok ragge@, otto@
2007-11-10Pull from master repo:Stefan Kempf
Include string.h. ok ragge@, otto@
2007-11-05Pull from master repo:Stefan Kempf
Fix defalign(). ok otto@, gmcgarry
2007-11-04Update from master repo:Anders Magnusson
> Work in progress: PIC code for i386. > Still missing: ebx as argument to functions.
2007-11-04Update from master repo:Anders Magnusson
> Print string identifier in case OREG has a relocatable offset.
2007-11-04iUpdate from master repo:Anders Magnusson
> kflag exists in both passes.
2007-11-04Update from master repo:Anders Magnusson
> Remove some unused prototypes.
2007-11-03fix fp div by zero in a target dependent way; problem reported byOtto Moerbeek
Chris Kuethe; ok ragge@
2007-11-03Print out names of register pairs correctly. ok otto@Stefan Kempf
2007-11-02Fix wait() usage and convert to waitpid(). Convert manual statusTodd C. Miller
frobbing with WIF* macros. Originally based on a diff from deraadt@. OK deraadt@.
2007-11-01Pull from master repo, commit by myself:Otto Moerbeek
next step for ELFABI, hello world works with ELFABI, but register pairs still produce wrong assembly; with Dale Rahn
2007-11-01Pull from master repo:Stefan Kempf
Don't let temporary file lie around if -S is used. ok ragge@
2007-10-31Pull from master repo, commit by gmcgarry:Otto Moerbeek
Reset the sue to UCHAR if using CHAR_UNSIGNED. Fixes warnings on powerpc.
2007-10-31Pull from master repo, commit by gmcgarry:Otto Moerbeek
Provide compile-time flag STAB_LINE_ASSOLUTE which creates N_SLINE stabs using absolute addresses instead of relative addresses. Fixes debugging on OSX (and probably other non-ELF targets).
2007-10-29Pull from master repo:Stefan Kempf
Fix sorting bug in addcase(). Spotted by Gregory McGarry. ok gmcgarry, ragge@
2007-10-29From master repo:Anders Magnusson
> calls argument numbers are in registers, not bytes. > If a jump is to the return label, emit ret insn instead. > Add ADDROF table entry. > Remove some unused entries. > Do a Z call for emitted GOTOs. > Only create constants for function names, they are called by name anyway.
2007-10-29Updates from master repo:Anders Magnusson
> Allow ADDROF to fall through to table, for PIC code generation. > Tighten check on GOTO argument and only complain that the label is out-of-range > if we are actually jumping to label (ICON).
2007-10-27From master repo: Remove lineid() prototype.Anders Magnusson
2007-10-27Sync with master repo: At least compiles now.Anders Magnusson
2007-10-27Sync vith master repo: Remove lineid(), #ifdef for mirbsd wchar_t.Anders Magnusson
2007-10-27From master repo: Allow for less than 4 register classes.Anders Magnusson
2007-10-27Pull up changes from master repo:Anders Magnusson
> Fix preprocessor number overflow check, by Jan Kryl.
2007-10-23Fixes from master repo:Anders Magnusson
> Fix FLD node type for code generation, so that it is useful again for > architectures with bitfield instructions, like vax and hppa :-)
2007-10-23Fix from master repo:Anders Magnusson
> Fix signed/unsigned type cast error, from Takehiko Nozaki.
2007-10-23Pull from ragge's repo, commit by mickey:Otto Moerbeek
fix segfault in CDEBUG() use of rnames
2007-10-22Pull from master repo:Stefan Kempf
Pass the right file and not a temporary to as if cc is invoked with .s files. ok ragge@, otto@
2007-10-22Pull from ragge's repo:Otto Moerbeek
Some small bugfixes from Jan Kryl.
2007-10-22move from x86 to i386; gentle push by deraadt@, ok ragge@Otto Moerbeek
2007-10-21Pull from ragge's repo:Otto Moerbeek
More fixes to cpp arithmetic, sanitychecked by otto and stefan.
2007-10-21our as wants # as a comment charOtto Moerbeek
2007-10-21whack extdef() for the moment, it seems we do not need it and it tripsOtto Moerbeek
some bug as well (probably because of static data).
2007-10-20pull in exname() changes from ragge's repo. we're now back in syncOtto Moerbeek
2007-10-20sync with ragge's repoOtto Moerbeek
2007-10-20minor changes i missed on earlier merges with ragge's repoOtto Moerbeek
2007-10-20Start of a powerpc backend by Gregory McGarry. Not complete yet.Otto Moerbeek
2007-10-20powerpc ccomOtto Moerbeek
2007-10-20Pull from master repo; commit by gmcgarryOtto Moerbeek
>Fix -Xp (prototype debug) which was interpretting structs/unions/enums >as arrays. Fix compile with TARGET_STDARGS.
2007-10-20Pull from master repo:Stefan Kempf
stlye(9) fixes from Sergey Elin This as ok ragge@, otto@
2007-10-18Pull from master repo:Stefan Kempf
Replace errorx() with error(); exit() in the child process in callsys(). errorx deletes the temp. files which we don't want to happen in the child. ok otto@, ragge@
2007-10-18Kill spurious warnings when arg is a function pointer. ShouldOtto Moerbeek
actually check the return type and arg list of the function pointer arg. ok ragge@