summaryrefslogtreecommitdiff
path: root/usr.bin/pcc
AgeCommit message (Collapse)Author
2008-01-24Work-in-progress for sparc64, by David Crawshaw.Anders Magnusson
2008-01-12Updates from master repo:Anders Magnusson
> Fix whitespace bug. > Define __STDC_VERSION__ to 199901L.
2008-01-12Updates from master repo.Anders Magnusson
2008-01-12Updates from master repo:Anders Magnusson
> Change to new initializer handling. > Make prtdcon() target dependent to allow for float constants in code.
2008-01-12Large update from master repo:Anders Magnusson
> Pragma not position dependent > Accept declarations anywhere in the C code. > Just typing "a;" is not allowed anymore when declaring variables. > Change to new initializer handling. > Use symtab entry, not name to identify inline functions. > Remove "suse" symtab element and replace it with output name. > Print out strings directly, do not store them until end. > Make prtdcon() target dependent to allow for float constants in code.
2008-01-12Update from master repo:Anders Magnusson
> Convert TEMPs to use rval for numbers.
2008-01-07Pull from master repo:Stefan Kempf
Use proper type for ix, code and match in lookup(). ok ragge@
2007-12-28Pull from master repo:Stefan Kempf
Use sclass and soffset to access hdr.h_sclass and hdr.h_offset.
2007-12-25Pull from master repo:Stefan Kempf
Set type to INT if it's still UNDEF upon return from typenode(). ok ragge@
2007-12-22Sync with main repo.Stefan Kempf
2007-12-22Sync with main repo.Stefan Kempf
2007-12-22Sync with main repo.Stefan Kempf
2007-12-22Sync with main repo.Stefan Kempf
2007-12-22Sync with main repo.Stefan Kempf
2007-12-22Sync with main repo.Stefan Kempf
2007-12-19sync to main repo; requested by mickeyOtto Moerbeek
2007-12-16Updates from master repo:Anders Magnusson
> Fix bug causing a cast from floats to integer types be rounded > up as well as down instead just rounding them down.
2007-12-16Updates from master repo:Anders Magnusson
> More sane sanitycheck in e2print(). > Add edges between different needs in table entries to avoid > that they get painted with the same color.
2007-12-16Update from master repo:Anders Magnusson
> Do not output constants larger than stabs allows.
2007-12-09Updates from master repo:Anders Magnusson
- Don't loop forever in conditional includes. - Print error and not a number if wrong token got. - A bunch of sanity checks.
2007-12-09Updates from master repo:Anders Magnusson
- Add acceptable() and mflags(). - Remove unused functions.
2007-12-09Updates from master repo:Anders Magnusson
- Add support for PIC code.
2007-12-09Updates from master repo:Anders Magnusson
- Add acceptable(). - Remove unused function setincr(). Add acce
2007-12-09Update from master repo:Anders Magnusson
- Declare a few stab symbols locally.
2007-12-09Update from master repo:Anders Magnusson
- Understand -m as flag.
2007-12-09Updates from matser repo:Anders Magnusson
- Leave to target code to decide whether a node can be used for initialization or not. - Fix bug causing rw data to sometimes end up in ro segment.
2007-12-09Updates from master repo:Anders Magnusson
- Rewrite typenode() so that const/volatile can be handled better. - Give target code the opportunity to handle string symbols.
2007-12-09Updates from master repo:Anders Magnusson
- Give clocal() a chance to handle STASG early.
2007-12-09Updates from master repo:Anders Magnusson
- Add target-dependent function acceptable() to give target code a last chance to tell whether an instruction should be used or not.
2007-12-09Updates from master repo:Anders Magnusson
- Send ipole as arg to myoptim().
2007-12-09Updates from master repo:Anders Magnusson
- Only check for flags already set if BITYPE.
2007-12-09Updates from master repo:Anders Magnusson
- Nuke unused prototypes.
2007-12-09Update from master repo:Anders Magnusson
- Nuke unused prototypes.
2007-12-09Updates from master repo:Anders Magnusson
- Clear edgehash after onlyperm also. - Avoid diagnostic that may fail for targets with reg arguments.
2007-11-25arm backend by Gregory McGarry, untestedOtto Moerbeek
2007-11-25arm backend from Gregory McGarry, untestedOtto Moerbeek
2007-11-25Pull from master repo:Stefan Kempf
Check malloc/strdup return values.
2007-11-25Pull from master repo:Stefan Kempf
Complain about invalid bit-field size for unnamed bit-fields as well. ok ragge@
2007-11-24Pull from master repo:Stefan Kempf
chars are sign-extended with extsb, not extsh.
2007-11-24Pull from master repo:Stefan Kempf
No need to sign-extend unsigned shorts loaded from memory.
2007-11-24Pull from master repo:Stefan Kempf
More missing newlines.
2007-11-24Add newline after comment. The following instruction would not beStefan Kempf
recognized by the assembler otherwise.
2007-11-22Pull from master repo:Stefan Kempf
Kill two useless assignments. ok ragge@ some time ago
2007-11-22Pull from master repo:Stefan Kempf
Fix the other rule that did not load small negative 64-bit constants correctly. The error shows up if you compile main(){long long = -1;} with -xtemps.
2007-11-22Pull from master repo:Stefan Kempf
Put the genswitch() code that is found in most backends into the MI part. The backend version is renamed to mygenswitch() and can provide improved translations for switch statements. Improved implementation of the switch constraints/semantics described in the standard. ok ragge@, otto@ With help and comments from ragge and gmcgarry
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().